From b130b8f2d97e6f62111420ca82b427439b741d3f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 22:17:20 +0100 Subject: fixup: check if we need to do anything --- bin/d-i_build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 3f1ef94b..77d929c8 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -31,10 +31,10 @@ pdebuild_package() { # check if we need to do anything # ARCH=$(dpkg --print-architecture) - EGREP_PATTERN="'( all| any| $ARCH)'" - if [ ! $(grep Architecture: debian/control | egrep -q $EGREP_PATTERN) ] ; then - echo "This package is not to be supposed to be build on $ARCH." - grep Architecture: debian/control + EGREP_PATTERN="( all| any| $ARCH)" + if [ ! $(grep "Architecture:" debian/control | egrep -q '$EGREP_PATTERN') ] ; then + echo "This package is not to be supposed to be build on $ARCH:" + grep "Architecture:" debian/control return fi -- cgit v1.2.3-54-g00ecf