summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_local-packages8
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/lh_chroot_local-packages b/helpers/lh_chroot_local-packages
index 484168c..953bef7 100755
--- a/helpers/lh_chroot_local-packages
+++ b/helpers/lh_chroot_local-packages
@@ -60,7 +60,13 @@ then
# Installing packages
Chroot "find /root -name *.deb" > chroot/root/local-packages
- Chroot "xargs --arg-file=/root/local-packages dpkg -i" || true
+
+ if [ -s chroot/root/local-packages ]
+ then
+ Chroot "xargs --arg-file=/root/local-packages dpkg -i" || true
+ else
+ Echo_warning "Local packages must be named with suffix '_all.deb' or '_\$architecture.deb'."
+ fi
# Cleaning dependencies
Apt install -f