From a26d1c55e1787a982a58fe9aa1e0f3e440577c9b Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 15 Jun 2008 02:55:33 +0100 Subject: Ensure apt-utils is installed in the helpers it is required. This allows us to remove a hacky test from hooks/minimal to see whether we need the package. --- hooks/minimal | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'hooks') diff --git a/hooks/minimal b/hooks/minimal index f081fccc7..ff02ddc37 100755 --- a/hooks/minimal +++ b/hooks/minimal @@ -9,27 +9,15 @@ set -e -Purge() { - PACKAGE="${1}" - +# Removing unused packages +for PACKAGE in apt-utils aptitude man-db manpages info wget +do if ! apt-get remove --purge --yes "${PACKAGE}" then echo "WARNING: ${PACKAGE} isn't installed" fi -} - -# Removing unused packages -for PACKAGE in aptitude man-db manpages info wget -do - Purge ${PACKAGE} done -# Remove apt-utils if we do not require it for lh_chroot_sources -if [ ! -e chroot/root/local-packages/Packages.gz ] -then - Purge apt-utils -fi - apt-get autoremove --yes || true # Removing unused files -- cgit v1.2.3