diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-03-15 15:45:31 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-03-15 15:45:31 +0100 |
commit | 8644587aaf9938acf5e2c3b84f5cae76bc1c1df3 (patch) | |
tree | f5e6adb945f0eff4bc5f2d2dee717ec6706f8a57 /bin | |
parent | 08ecfd9bbacd2505c2ef2cec56c9511f233d1d59 (diff) | |
download | jenkins.debian.net-8644587aaf9938acf5e2c3b84f5cae76bc1c1df3.tar.xz |
ignore empty one-line output from dh_listpackages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/d-i_build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 650b1576..777296de 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -36,8 +36,8 @@ pdebuild_package() { echo "Warning: A source package without debian/control, so no build will be tried." return fi - if [ $(dh_listpackages | wc -l) -eq 0 ]; then - echo "This package is not to be supposed to be build on $MYARCH:" + if [ $(dh_listpackages | |sed '/^$/d' | wc -l) -eq 0 ]; then + echo "This package is not to be supposed to be build on $(dpkg --print-architecture)" grep "Architecture:" debian/control return fi |