From 8644587aaf9938acf5e2c3b84f5cae76bc1c1df3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 15 Mar 2014 15:45:31 +0100 Subject: ignore empty one-line output from dh_listpackages --- bin/d-i_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2