summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-01-11 17:05:30 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:39 +0100
commit4185bfed45d1ec5bb7bd65536ee1e8ace12539bf (patch)
tree9c1ada5300ad0d035019b7903acfe973e73de965 /helpers
parent425d51e38b63e3e55558d95e56518a4a53c01a26 (diff)
downloadvyos-live-build-4185bfed45d1ec5bb7bd65536ee1e8ace12539bf.tar.gz
vyos-live-build-4185bfed45d1ec5bb7bd65536ee1e8ace12539bf.zip
Moving removal of apt packages lists from minimal and stripped hook to lh_chroot_sources, thanks to Ben Armstrong <synrg@debian.org>.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_sources13
1 files changed, 12 insertions, 1 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index a8627640f..6a93aab4a 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -404,10 +404,21 @@ case "${1}" in
Apt update
fi
- # Cleaning apt packages cache
+ # Cleaning apt package cache
rm -rf chroot/var/cache/apt
mkdir -p chroot/var/cache/apt/archives/partial
+ for LIST in ${LH_PACKAGES_LISTS}
+ do
+ case "${LIST}" in
+ stripped|minimal)
+ # Cleaning apt package lists
+ rm -rf chroot/var/lib/apt/lists
+ mkdir -p chroot/var/lib/apt/lists/partial
+ ;;
+ esac
+ done
+
# Remove local package repository
rm -rf chroot/root/local-packages