Better handle empty package lists.

The fix in a294a46fb9 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
This commit is contained in:
Raphaël Hertzog 2014-12-10 15:58:34 +01:00
parent b8eb3ab144
commit 4d67c64ba2
2 changed files with 10 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
live-build (1:20160105) UNRELEASED; urgency=medium
* Better handle empty package lists.
-- Raphaël Hertzog <hertzog@debian.org> Tue, 05 Jan 2016 18:03:44 +0100
live-build (1:20151215) unstable; urgency=medium
* QA Upload.

View File

@ -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}