From 08ecfd9bbacd2505c2ef2cec56c9511f233d1d59 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 13 Mar 2014 19:19:05 +0100 Subject: fixup last commit as suggested by Wouter on the list --- bin/d-i_build.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index f5dc063e..650b1576 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -36,14 +36,10 @@ pdebuild_package() { echo "Warning: A source package without debian/control, so no build will be tried." return fi - ARCH=$(grep 'Architecture:' debian/control | cut -d' ' -f 2) - MYARCH=$(dpkg --print-architecture) - if [ $ARCH != "all" ] ; then - if ! dpkg-architecture -i$ARCH ; then - echo "This package is not to be supposed to be build on $MYARCH:" - grep "Architecture:" debian/control - return - fi + if [ $(dh_listpackages | wc -l) -eq 0 ]; then + echo "This package is not to be supposed to be build on $MYARCH:" + grep "Architecture:" debian/control + return fi # # prepare build -- cgit v1.2.3-70-g09d2