[buildd-tools-devel] Bug#764785: Bug#764785: schroot: setup script to copy apt archives from host to chroot
Felipe Sateler
fsateler at debian.org
Mon Nov 10 00:44:38 UTC 2014
On Sun, Nov 9, 2014 at 3:33 PM, Roger Leigh <rleigh at codelibre.net> wrote:
> On Sat, Oct 11, 2014 at 12:24:38AM -0300, Felipe Sateler wrote:
>> Package: schroot
>> Version: 1.6.10-1+b1
>> Severity: wishlist
>> Tags: patch
>>
>> For systems without an apt proxy the local apt cache can be very useful
>> to avoid downloading stuff multiple times. Thus I created a small
>> script (attached) to copy the local apt cache contents into the chroot,
>> and then copy them back to the host on stop. pbuilder does this as well.
>>
>> This probably shouldn't be enabled by default. So perhaps this could be
>> shipped as a contrib script, or another variable added to
>> /etc/default/schroot (I can update the script if required).
>
> I think this is perfect for a contrib script; thanks for sending it.
:)
>
> One thing which might need correction: when it copies the files back
> on setup-stop, it's not checking for glob failure before doing the
> copy (which you do for setup-start). Would it be possible to add this
> additional check?
Yes, indeed this causes problems when the cache is empty (for example
after a sbuild-update -c). Attached is a version that only copies
files when they exist.
--
Saludos,
Felipe Sateler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 52aptcache
Type: application/octet-stream
Size: 547 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20141109/6eb2a15a/attachment.obj>
More information about the Buildd-tools-devel
mailing list