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). -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages schroot depends on: ii libboost-filesystem1.55.0 1.55.0+dfsg-3 ii libboost-iostreams1.55.0 1.55.0+dfsg-3 ii libboost-program-options1.55.0 1.55.0+dfsg-3 ii libboost-regex1.55.0 1.55.0+dfsg-3 ii libboost-system1.55.0 1.55.0+dfsg-3 ii libc6 2.19-11 ii libgcc1 1:4.9.1-16 ii libpam0g 1.1.8-3.1 ii libstdc++6 4.9.1-16 ii libuuid1 2.25.1-3 ii schroot-common 1.6.10-1 schroot recommends no packages. Versions of packages schroot suggests: pn aufs-modules | unionfs-modules <none> ii btrfs-tools 3.16-1 ii debootstrap 1.0.63 ii lvm2 2.02.111-2 pn qemu-user-static <none> -- no debconf information
#!/bin/sh set -e . "$SETUP_DATA_DIR/common-data" . "$SETUP_DATA_DIR/common-functions" . "$SETUP_DATA_DIR/common-config" APTCACHE=/var/cache/apt/archives/ case "$STAGE" in setup-start|setup-recover) if ls ${APTCACHE} | grep -q 'deb$' ; then info "Copying apt cache contents into chroot" cp ${APTCACHE}/*.deb "${CHROOT_PATH}/${APTCACHE}" fi ;; setup-stop) cp --no-clobber "${CHROOT_PATH}/${APTCACHE}"/*.deb ${APTCACHE} ;; esac