From 0db6932a2654f4172b0e2f5c4d5d84005435ac75 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Fri, 4 Sep 2009 14:25:20 -0400 Subject: [PATCH] Properly handle multi-arch builds. --- tools/nd_build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/nd_build b/tools/nd_build index 08ac6e2..9f2ca6e 100755 --- a/tools/nd_build +++ b/tools/nd_build @@ -78,10 +78,18 @@ else fi for a in $arch; do + if [ "$a" = "amd64" ]; then + # only force source into the upload for NeuroDebian + if [ ! "$family" = "${family#nd+*}" ]; then + options="$opts --debbuildopts -sa" + fi + else + options="$opts --debbuildopts -B" + fi echo "Building for $family $dist $a ..." cowbuilder --build $dscfile \ --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \ --buildresult . \ - $opts \ + $options \ $* done -- 2.39.5