summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:55:33 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:55:33 +0100
commit0cfbc69eb0d6559b7ea334448f5eb4178bfbfd95 (patch)
treeec92d5619009a37e42c2e9e4e55e17740107ec50 /hooks
parent28db987a8e76567ced94b4f68461427bbb38e11d (diff)
downloadvyos-live-build-0cfbc69eb0d6559b7ea334448f5eb4178bfbfd95.tar.gz
vyos-live-build-0cfbc69eb0d6559b7ea334448f5eb4178bfbfd95.zip
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. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/minimal18
1 files changed, 3 insertions, 15 deletions
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