summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_sources
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_sources')
-rwxr-xr-xhelpers/lh_chroot_sources15
1 files changed, 15 insertions, 0 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 677b50f..981692b 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -96,6 +96,15 @@ case "${1}" in
if ls chroot/root/local-packages/*.deb > /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
+
# Generate Packages.gz
echo "cd /root/local-packages && apt-ftparchive packages . > Packages" | Chroot sh
gzip -9 chroot/root/local-packages/Packages
@@ -104,6 +113,12 @@ case "${1}" in
echo "" >> chroot/etc/apt/sources.list
echo "# Local packages" >> chroot/etc/apt/sources.list
echo "deb file:/root/local-packages ./" >> chroot/etc/apt/sources.list
+
+ # Removing depends
+ Remove_package
+
+ # Saving cache
+ Save_cache cache/packages_chroot
else
Echo_warning "Local packages must be named with suffix '_all.deb' or '_\$architecture.deb'."
fi