From: Frank Lichtenheld Date: Wed, 5 Dec 2007 00:14:21 +0000 (+0100) Subject: dpkg-genchanges: Fix handling of 'all' in Architecture field X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4476d61767e4e533bb2cb9aac45e2ea3d18aac01;p=dpkg dpkg-genchanges: Fix handling of 'all' in Architecture field Exclude it for -B, exclude all other arches for -A --- diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index 2bfe8ae6..9ff8a8d6 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -420,6 +420,9 @@ if (!defined($f{'Date'})) { $f{'Binary'}= join(' ',grep(s/C //,keys %p2i)); unshift(@archvalues,'source') unless is_binaryonly; +@archvalues = ('all') if $include == ARCH_INDEP; +@archvalues = grep {!debarch_eq('all',$_)} @archvalues + unless $include & ARCH_INDEP; $f{'Architecture'}= join(' ',@archvalues); $f{'Description'}= "\n ".join("\n ",sort @descriptions);