From 71f37ff35c2abb3a8df5ed26745d35a8c9fd3df9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 22:46:09 +0100 Subject: fixup --- bin/d-i_build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 77d929c8..e2287ef8 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -6,7 +6,7 @@ # # default settings # -set -x +#set -x set -e export LC_ALL=C export MIRROR=http://ftp.de.debian.org/debian @@ -30,9 +30,13 @@ pdebuild_package() { # # check if we need to do anything # + if [ ! -f debian/control ] ; then + echo "Oh, a source package without debian/control..." + exit 1 + fi ARCH=$(dpkg --print-architecture) EGREP_PATTERN="( all| any| $ARCH)" - if [ ! $(grep "Architecture:" debian/control | egrep -q '$EGREP_PATTERN') ] ; then + if [ ! $(grep "Architecture:" debian/control | egrep "$EGREP_PATTERN" | wc -l ) -gt 0 ] ; then echo "This package is not to be supposed to be build on $ARCH:" grep "Architecture:" debian/control return -- cgit v1.2.3-54-g00ecf