diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-06-15 02:55:33 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:35 +0100 |
commit | a26d1c55e1787a982a58fe9aa1e0f3e440577c9b (patch) | |
tree | ec92d5619009a37e42c2e9e4e55e17740107ec50 /hooks/minimal | |
parent | 5cb3a1a800b0998d1d62997627f165d66fb55405 (diff) | |
download | live-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-x | hooks/minimal | 18 |
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 |