chiark / gitweb /
adt-run: Reset changes made to the apt configuration, on exit
authorTimo Juhani Lindfors <timo.lindfors@iki.fi>
Mon, 17 Oct 2011 20:50:26 +0000 (21:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 17 Oct 2011 20:50:26 +0000 (21:50 +0100)
commitbab1c3b3247f91d8048735cbf03d3df0d5701a2e
tree4147dea026bd5be407d5db6b92767e4743f6efb7
parent406a961e5781f9a5f53b6fd7bc63793da5225404
adt-run: Reset changes made to the apt configuration, on exit

After this change running
  adt-run --quiet --no-built-binaries hello_2.6-1.dsc --- adt-virt-null
  find /etc -name "*autopkgtest*"
does not print any files.

[ Ideally we would leave these config file settings somewhere where
  apt won't find them unless it's told to.  That way if adt-run crashes
  for any reason, we wouldn't be relying on this cleanup code, and we
  could remove it.

  However, when I tried to do this I found I couldn't get apt to
  reliably pick up all the files I needed using command line options.
  So this is an improvement for now.  -iwj ]
runner/adt-run