diff options
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_chroot_sources | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index a862764..6a93aab 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 |