diff options
author | Daniel Baumann <daniel@debian.org> | 2012-02-04 18:35:02 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-02-06 23:15:11 +0100 |
commit | 2bcb8b67e4a88877bc54e80b6909ca418d6b2b4a (patch) | |
tree | 6ee7488f0463e80d259eb3455a6ee4ee63f4f217 | |
parent | 0b6d68ce73a88f0f0b3bdf04796478771e831559 (diff) | |
download | vyos-live-build-2bcb8b67e4a88877bc54e80b6909ca418d6b2b4a.tar.gz vyos-live-build-2bcb8b67e4a88877bc54e80b6909ca418d6b2b4a.zip |
Avoid warning messages in binary_packagelists for not existing local lists.
-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 |