summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_local-packages
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:20 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:05:20 +0200
commitc7f53a9af5d7862c90a77bc754b1c0354b905bbb (patch)
tree92ae03973981067aea007213d056abbbc6388abb /helpers/lh_chroot_local-packages
parentcac98503f35e5e1c94866f0fbc0bb1a2bd45e309 (diff)
downloadvyos-live-build-c7f53a9af5d7862c90a77bc754b1c0354b905bbb.tar.gz
vyos-live-build-c7f53a9af5d7862c90a77bc754b1c0354b905bbb.zip
Adding live-helper 1.0~a26-1.
Diffstat (limited to 'helpers/lh_chroot_local-packages')
-rwxr-xr-xhelpers/lh_chroot_local-packages11
1 files changed, 9 insertions, 2 deletions
diff --git a/helpers/lh_chroot_local-packages b/helpers/lh_chroot_local-packages
index 1a084d519..96565a2fb 100755
--- a/helpers/lh_chroot_local-packages
+++ b/helpers/lh_chroot_local-packages
@@ -53,8 +53,15 @@ then
Restore_cache cache/packages_local-packages
# Copying packages
- cp config/chroot_local-packages/*_"${LH_ARCHITECTURE}".deb chroot/root
- cp config/chroot_local-packages/*_all.deb chroot/root
+ if ls config/chroot_local-packages/*_"${LH_ARCHITECTURE}".deb > /dev/null 2>&1
+ then
+ cp config/chroot_local-packages/*_"${LH_ARCHITECTURE}".deb chroot/root
+ fi
+
+ if ls config/chroot_local-packages/*_all.deb > /dev/null 2>&1
+ then
+ cp config/chroot_local-packages/*_all.deb chroot/root
+ fi
# Installing packages
Chroot "find /root -name *.deb" > chroot/root/local-packages