[buildd-tools-devel] Bug#796539: Bug#796539: Bug#796539: Forgot the patch (thanks josch)

Johannes Schauer josch at debian.org
Tue Sep 1 04:54:12 UTC 2015


Hi,

Quoting Paul Tagliamonte (2015-08-31 17:06:35)
> On Mon, Aug 31, 2015 at 10:23:28AM +0200, Raphael Hertzog wrote:
> > I note that you never remove the key at the end of the build.
> > And sbuild does not always use throw-away chroots...
> 
> Yeah, I'm mirroring the behavior of the --extra-repository flag -- I
> don't see any cleanup code for that, but I may have missed it. Thoughts?

any extra repositories are written to /etc/apt/sources.list.d/sbuild-build-depends-archive.list inside the chroot. This path is also stored in the configuration key 'Dummy archive list file' and you can see the function 'cleanup_apt_archive' removes the file pointed to by that key.

I only just read the man page of apt-key, and maybe something similar to the sources.list can be done with keys too, by just dumping them into /etc/apt/trusted.gpg.d/sbuild-build-depends-archive.gpg (or similar) and then removing just that file in the end.

I imagine it would be more difficult to use "apt-key del" to clean up because
running that command requires you to know the key ID(s).

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20150901/3f673812/attachment.sig>


More information about the Buildd-tools-devel mailing list