summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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