diff options
Diffstat (limited to 'helpers/lh_chroot_sources')
-rwxr-xr-x | helpers/lh_chroot_sources | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index 51716d1..d5e640c 100755 --- a/helpers/lh_chroot_sources +++ b/helpers/lh_chroot_sources @@ -403,16 +403,12 @@ case "${1}" in 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 + # Cleaning apt package lists + if [ "${LH_BINARY_INDICES}" = "none" ] + then + rm -rf chroot/var/lib/apt/lists + mkdir -p chroot/var/lib/apt/lists/partial + fi # Remove local package repository rm -rf chroot/root/local-packages |