summaryrefslogtreecommitdiff
path: root/hooks/minimal
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:55:33 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commita26d1c55e1787a982a58fe9aa1e0f3e440577c9b (patch)
treeec92d5619009a37e42c2e9e4e55e17740107ec50 /hooks/minimal
parent5cb3a1a800b0998d1d62997627f165d66fb55405 (diff)
downloadlive-build-a26d1c55e1787a982a58fe9aa1e0f3e440577c9b.zip
live-build-a26d1c55e1787a982a58fe9aa1e0f3e440577c9b.tar.gz
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.
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