Also making use of package cache during chroot_local-hooks (Closes: #566838).
This commit is contained in:
parent
d86f8384eb
commit
f9a8f5cf74
|
@ -40,6 +40,9 @@ Create_lockfile .lock
|
||||||
# Processing local-hooks
|
# Processing local-hooks
|
||||||
if Find_files config/chroot_local-hooks/*
|
if Find_files config/chroot_local-hooks/*
|
||||||
then
|
then
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_chroot
|
||||||
|
|
||||||
for HOOK in config/chroot_local-hooks/*
|
for HOOK in config/chroot_local-hooks/*
|
||||||
do
|
do
|
||||||
# Copying hook
|
# Copying hook
|
||||||
|
@ -58,6 +61,9 @@ then
|
||||||
rm -f chroot/root/"$(basename ${HOOK})"
|
rm -f chroot/root/"$(basename ${HOOK})"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_chroot
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/chroot_local-hooks
|
Create_stagefile .stage/chroot_local-hooks
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue