From 98d17ee5ed8505cddcc9043585f7177bcef398c5 Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 23 Jun 2014 12:53:24 +0200 Subject: [PATCH] remove all build dependencies from no-arch-all that were already found with arch-all --- run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/run.sh b/run.sh index f8452a7..097f7e5 100755 --- a/run.sh +++ b/run.sh @@ -48,7 +48,25 @@ for a in "arch-all" "no-arch-all"; do echo $dsc build "$dsc" "$a" done +done + +# now process the possibly droppable build dependencies found by no-arch-all +# and remove from them all that were also found by arch-all +for noarchall in *.no-arch-all.unusedbd; do + archall=`basename $noarchall .no-arch-all.unusedbd`.arch-all.unusedbd + if [ -s $archall ]; then + # only keep the values unique to no-arch-all + comm -23 $noarchall $archall > tmp + if [ -s tmp ]; then + mv tmp $noarchall + else + # no unique values in noarchall + rm $noarchall + fi + fi +done +for a in "arch-all" "no-arch-all"; do while read dscname; do echo $dscname check $dscname "$a"