diff options
-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 |