summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_local-packageslists
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 /helpers/lh_binary_local-packageslists
parent5cb3a1a800b0998d1d62997627f165d66fb55405 (diff)
downloadvyos-live-build-a26d1c55e1787a982a58fe9aa1e0f3e440577c9b.tar.gz
vyos-live-build-a26d1c55e1787a982a58fe9aa1e0f3e440577c9b.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.
Diffstat (limited to 'helpers/lh_binary_local-packageslists')
-rwxr-xr-xhelpers/lh_binary_local-packageslists15
1 files changed, 15 insertions, 0 deletions
diff --git a/helpers/lh_binary_local-packageslists b/helpers/lh_binary_local-packageslists
index 5b8927a5d..265941688 100755
--- a/helpers/lh_binary_local-packageslists
+++ b/helpers/lh_binary_local-packageslists
@@ -44,6 +44,15 @@ Create_lockfile .lock
if ls config/binary_local-packageslists/* > /dev/null 2>&1
then
+ # Restoring cache
+ Restore_cache cache/packages_chroot
+
+ # Check depends
+ Check_package chroot/usr/bin/apt-ftparchive apt-utils
+
+ # Installing depends
+ Install_package
+
mkdir -p chroot/binary.deb/archives/partial
mv chroot/var/lib/dpkg/status chroot/var/lib/dpkg/status.tmp
touch chroot/var/lib/dpkg/status
@@ -95,6 +104,12 @@ then
rm -rf chroot/binary.deb
mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status
+ # Removing depends
+ Remove_package
+
+ # Saving cache
+ Save_cache cache/packages_chroot
+
# Creating stage file
Create_stagefile .stage/binary_local-packageslists
fi