summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2014-12-10 15:58:34 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-01-05 18:05:12 +0100
commit4d67c64ba2774c63b8a30d8cfe49ae9a47be3647 (patch)
tree4cf35313a92d90acb344477912f2bf0e66e51f86 /scripts
parentb8eb3ab14401612e52cc6729387407c2e8b5a6b5 (diff)
downloadvyos-live-build-4d67c64ba2774c63b8a30d8cfe49ae9a47be3647.tar.gz
vyos-live-build-4d67c64ba2774c63b8a30d8cfe49ae9a47be3647.zip
Better handle empty package lists.
The fix in a294a46fb9fe28e43686b18da7b22ec1c46b0d4f was not enough. This should finally resolve the problem when a package list ends up empty (most notably due to #if evaluating to false). Sponsored-By: Offensive Security
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_package-lists4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/binary_package-lists b/scripts/build/binary_package-lists
index d81bfe7d1..dcbadccb5 100755
--- a/scripts/build/binary_package-lists
+++ b/scripts/build/binary_package-lists
@@ -145,6 +145,10 @@ then
for SECTION in ${POOL}/*
do
+ if [ ! -d "${SECTION}" ]; then
+ break # Do nothing if the package lists were empty...
+ fi
+
SECTION="$(basename ${SECTION})"
mkdir -p ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LB_ARCHITECTURES}