From 4185bfed45d1ec5bb7bd65536ee1e8ace12539bf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Jan 2009 17:05:30 +0100 Subject: Moving removal of apt packages lists from minimal and stripped hook to lh_chroot_sources, thanks to Ben Armstrong . --- helpers/lh_chroot_sources | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'helpers') 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 -- cgit v1.2.3