Look up versions of packages in proposed to run autopkgtest against, and
output the retry URLs.
This is intended for the case when you have manually determined to retry
an autopkgtest against some particular set of packages in proposed, and
now need to look up the versions and correctly URL-encode everything to
correctly construct the retry URLs against various arches.
The script will grab and unpack the source code, init a git repository,
and add the files. It also will run ubuntu-maintainer (since presumably
you're grabbing it to make modifications to it, and don't want to forget
to run that.)
pkg-clean: Clean also directories holding source packages
Detect if we're either inside a git repo (e.g. a git-ubuntu checkout,
but really any git-managed directory), or in a parent directory, where
the .changes, .dsc, .orig.tar.*, et al files get placed. In the latter
case, cleanup files like .build, .buildinfo, .deb, and so on.