Make --architectures armel only fail if --linux-flavours was not passed (Closes: #630464).

This commit is contained in:
Colin Watson 2011-06-14 12:14:14 +02:00 committed by Daniel Baumann
parent 21dfadb622
commit 65ac1c651c
1 changed files with 6 additions and 3 deletions

View File

@ -593,9 +593,12 @@ Set_defaults ()
# Setting linux flavour string
case "${LB_ARCHITECTURES}" in
armel)
Echo_error "There is no default kernel flavour defined for your architecture."
Echo_error "Please configure it manually with 'lb config -k FLAVOUR'."
exit 1
if [ -z "${LB_LINUX_FLAVOURS}" ]
then
Echo_error "There is no default kernel flavour defined for your architecture."
Echo_error "Please configure it manually with 'lb config -k FLAVOUR'."
exit 1
fi
;;
amd64)