Moving removal of apt packages lists from minimal and stripped hook to lh_chroot_sources, thanks to Ben Armstrong <synrg@debian.org>.

This commit is contained in:
Daniel Baumann 2009-01-11 17:05:30 +01:00
parent 425d51e38b
commit 4185bfed45
3 changed files with 12 additions and 17 deletions

View File

@ -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

View File

@ -25,14 +25,6 @@ find . -name *~ -print0 | xargs -0 rm -f
rm -rf /var/cache/man/*
# Cleaning apt lists
rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
# Cleaning apt cache
rm -rf /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
# Truncating logs
for FILE in $(find /var/log/ -type f)
do

View File

@ -35,14 +35,6 @@ rm -rf /usr/share/linda/*
rm -rf /usr/share/zoneinfo/*
rm -rf /var/cache/man/*
# Cleaning apt lists
rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
# Cleaning apt cache
rm -rf /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
# Truncating logs
for FILE in $(find /var/log/ -type f)
do