From 4476d61767e4e533bb2cb9aac45e2ea3d18aac01 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Wed, 5 Dec 2007 01:14:21 +0100 Subject: [PATCH] dpkg-genchanges: Fix handling of 'all' in Architecture field Exclude it for -B, exclude all other arches for -A --- scripts/dpkg-genchanges.pl | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5