diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-03-13 19:19:05 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-03-13 19:22:39 +0100 |
commit | 08ecfd9bbacd2505c2ef2cec56c9511f233d1d59 (patch) | |
tree | a54247125a3cac24ad129562408bad087dc6e437 | |
parent | 81051c4fc12865b61759801ab2aa5ad00fe9b432 (diff) | |
download | jenkins.debian.net-08ecfd9bbacd2505c2ef2cec56c9511f233d1d59.tar.xz |
fixup last commit as suggested by Wouter on the list
-rwxr-xr-x | bin/d-i_build.sh | 12 |
1 files 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 |