From 8d238f9b2a36a5aa19c59e5c28f56cd838f0ddd4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 22:02:24 +0100 Subject: fail gracefully on other archs --- bin/d-i_build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 4f786df1..491208f8 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -39,7 +39,14 @@ pdebuild_package() { # # build # - pdebuild + ARCH=$(dpkg --print-architecture) + EGREP_APPTERN="'( all| any| $ARCH)'" + if [ $(grep Architecture: debian/control | egrep -q $EGREP_PATTERN) ] ; then + pdebuild + else + echo "This package is not to be supposed to be build on $ARCH." + grep Architecture: debian/control + fi } init_workspace -- cgit v1.2.3-70-g09d2