diff options
author | Guillem Jover <guillem@debian.org> | 2016-11-02 05:03:19 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-11-02 05:55:36 +0100 |
commit | cae957871dad79bbd48e264611ad3b4ca146dd7c (patch) | |
tree | db4d085c43492b4f18c0d73e23f449ecf4558cb5 /scripts | |
parent | 2783ac6d21466bb9e448ecbe89c95f8fbafadb92 (diff) | |
download | dpkg-cae957871dad79bbd48e264611ad3b4ca146dd7c.tar.gz |
dpkg-genchanges: Only add architectures for .deb/.udeb artifacts
When we are parsing filenames for artifacts that ressemble a known
package, we should not be assuming that the third basename _-separated
item is an architecture. Only consider it so for .deb and .udebs.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dpkg-genchanges.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index 640e9fd7d..2c3316dc2 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -313,11 +313,9 @@ if (build_has_any(BUILD_BINARY)) { if (defined $file->{package} && $file->{package_type} =~ m/^u?deb$/) { $p2f{$file->{package}} //= []; push @{$p2f{$file->{package}}}, $file->{filename}; - } - if (defined $file->{arch}) { push @archvalues, $file->{arch} - if $file->{arch} and not $archadded{$file->{arch}}++; + if defined $file->{arch} and not $archadded{$file->{arch}}++; } } } |