diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-11-12 22:02:24 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-11-12 22:02:24 +0100 |
commit | 8d238f9b2a36a5aa19c59e5c28f56cd838f0ddd4 (patch) | |
tree | ad9c0b94262258fb487c38460f7427d3821ecd76 /bin | |
parent | 860c06088717e4571dd4f5bf408f74c2b09f3dce (diff) | |
download | jenkins.debian.net-8d238f9b2a36a5aa19c59e5c28f56cd838f0ddd4.tar.xz |
fail gracefully on other archs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/d-i_build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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 |