summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-01-25 16:35:31 +0100
committerDaniel Baumann <daniel@debian.org>2010-01-31 14:19:49 +0100
commite54f4a09dfb94e825b9014655dce3f60b97eb1b7 (patch)
treeefd247a1c9127612b7118d3b0374c43fa62f8f8a /helpers
parentf560e977a9633272bb258443919acf18e3184743 (diff)
downloadvyos-live-build-e54f4a09dfb94e825b9014655dce3f60b97eb1b7.tar.gz
vyos-live-build-e54f4a09dfb94e825b9014655dce3f60b97eb1b7.zip
Also making use of package cache during chroot_local-hooks (Closes: #566838).
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_local-hooks6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_chroot_local-hooks b/helpers/lh_chroot_local-hooks
index 5c076b0c9..0155e791b 100755
--- a/helpers/lh_chroot_local-hooks
+++ b/helpers/lh_chroot_local-hooks
@@ -40,6 +40,9 @@ Create_lockfile .lock
# Processing local-hooks
if Find_files config/chroot_local-hooks/*
then
+ # Restoring cache
+ Restore_cache cache/packages_chroot
+
for HOOK in config/chroot_local-hooks/*
do
# Copying hook
@@ -58,6 +61,9 @@ then
rm -f chroot/root/"$(basename ${HOOK})"
done
+ # Saving cache
+ Save_cache cache/packages_chroot
+
# Creating stage file
Create_stagefile .stage/chroot_local-hooks
fi