From 2bcb8b67e4a88877bc54e80b6909ca418d6b2b4a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 Feb 2012 18:35:02 +0100 Subject: [PATCH] Avoid warning messages in binary_packagelists for not existing local lists. --- scripts/build/lb_binary_packagelists | 15 +++++++++------ 1 file 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