[buildd-tools-devel] Bug#764785: Bug#764785: Bug#764785: schroot: setup script to copy apt archives from host to chroot
Felipe Sateler
fsateler at debian.org
Mon Nov 24 14:00:03 UTC 2014
On Mon, Nov 24, 2014 at 10:50 AM, Roger Leigh <rleigh at codelibre.net> wrote:
> On Sun, Nov 09, 2014 at 09:44:38PM -0300, Felipe Sateler wrote:
>> 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.
>
> Great, thanks.
>
> Would it be OK for me to add a GPL3 copyright header to match the rest of
> the project?
Yes, of course. I see the copyright file actually says GPLv3+, so that
would be OK with me too.
In more general words, I submit the file with whatever license the
project normally uses for such files.
--
Saludos,
Felipe Sateler
More information about the Buildd-tools-devel
mailing list