diff options
Diffstat (limited to 'scripts/build/lb_binary_packagelists')
-rwxr-xr-x | scripts/build/lb_binary_packagelists | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/build/lb_binary_packagelists b/scripts/build/lb_binary_packagelists index 5f2c64ba9..6f2ffc79b 100755 --- a/scripts/build/lb_binary_packagelists +++ b/scripts/build/lb_binary_packagelists @@ -57,14 +57,17 @@ then for LIST in config/package-lists/*.list \ config/package-lists/*.list.binary do - # Generate package list - Expand_packagelist "${LIST}" "config/package-lists" > chroot/root/"$(basename ${LIST})" + if [ -e "${LIST}" ] + then + # Generate package list + Expand_packagelist "${LIST}" "config/package-lists" > chroot/root/"$(basename ${LIST})" - # Downloading additional packages - Chroot chroot "xargs --arg-file=/root/$(basename ${LIST}) apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb --download-only install" + # Downloading additional packages + Chroot chroot "xargs --arg-file=/root/$(basename ${LIST}) apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb --download-only install" - # Remove package list - rm chroot/root/"$(basename ${LIST})" + # Remove package list + rm chroot/root/"$(basename ${LIST})" + fi done for FILE in chroot/binary.deb/archives/*.deb |