summaryrefslogtreecommitdiff
path: root/hooks/minimal
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/minimal')
-rwxr-xr-xhooks/minimal18
1 files changed, 3 insertions, 15 deletions
diff --git a/hooks/minimal b/hooks/minimal
index f081fcc..ff02ddc 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