Dear Maintainer,
The recent addition of retry with --download-debversion if --download-version
failed [1] to gbp import-orig is a great idea. However, there is a bug in the
implementation. When uscan --download-version=foo fails, gbp is supposed to
call uscan --download-debversion=foo, but it instead calls uscan without
specifying any version. This results in uscan downloading the latest
version of the tarball available and gbp then renames that tarball to
the specified version. This is very confusing.
I've attached a patch that ensures gbp import-orig passes the correct
version in the fallback. I would also suggest that the manpage be
updated to reflect this behaviour, as it is not currently documented.
The option is currently described as: