summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-12 22:02:24 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-12 22:02:24 +0100
commit8d238f9b2a36a5aa19c59e5c28f56cd838f0ddd4 (patch)
treead9c0b94262258fb487c38460f7427d3821ecd76 /bin
parent860c06088717e4571dd4f5bf408f74c2b09f3dce (diff)
downloadjenkins.debian.net-8d238f9b2a36a5aa19c59e5c28f56cd838f0ddd4.tar.xz
fail gracefully on other archs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/d-i_build.sh9
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