From 0a0d2970536741905e4a6197cd4450dac0a1188a Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 5 Aug 2014 12:42:04 +0200 Subject: dpkg-genchanges: Correctly filter host arch from the Architecture field We should also filter the host arch in the same way we filter the all arch when the build type excludes these packages, otherwise we get incongruent .changes files. --- scripts/dpkg-genchanges.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/dpkg-genchanges.pl') diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index 9cd72a1ae..854d21453 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -466,6 +466,8 @@ unshift @archvalues, 'source' unless is_binaryonly; @archvalues = ('all') if $include == BUILD_ARCH_INDEP; @archvalues = grep { !debarch_eq('all', $_) } @archvalues unless $include & BUILD_ARCH_INDEP; +@archvalues = grep { !debarch_eq($host_arch, $_) } @archvalues + unless $include & BUILD_ARCH_DEP; $fields->{'Architecture'} = join ' ', @archvalues; $fields->{'Built-For-Profiles'} = join ' ', get_build_profiles(); -- cgit v1.2.3