Aborting early in chroot_package-lists if no package list is found.

This commit is contained in:
Daniel Baumann 2013-03-27 13:22:58 +01:00
parent d0bb1a3ade
commit 7406724344
1 changed files with 62 additions and 60 deletions

View File

@ -42,10 +42,13 @@ Check_lockfile .lock
Create_lockfile .lock
# Handling local package lists
if ls config/package-lists/*.list > /dev/null 2>&1 || \
if ! ( ls config/package-lists/*.list > /dev/null 2>&1 || \
ls config/package-lists/*.list.chroot > /dev/null 2>&1 || \
ls config/package-lists/*.list.chroot_${_PASS} > /dev/null 2>&1
ls config/package-lists/*.list.chroot_${_PASS} > /dev/null 2>&1 )
then
exit 0
fi
case "${LB_BUILD_WITH_CHROOT}" in
true)
# Checking depends
@ -104,4 +107,3 @@ then
# Creating stage file
Create_stagefile .build/chroot_package-lists.${_PASS}
fi