diff options
author | Guillem Jover <guillem@debian.org> | 2017-01-15 03:29:29 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-01-22 15:54:30 +0100 |
commit | e8d687a1093124fdb17c7ac6569c5a605b2da2f1 (patch) | |
tree | be3d7f7436ef62b2c85fdb7901dc4e63157a0fd3 /scripts/Dpkg/Arch.pm | |
parent | 6131b9c953c9d1cfa6fe248cab44a08311464720 (diff) | |
download | dpkg-e8d687a1093124fdb17c7ac6569c5a605b2da2f1.tar.gz |
Dpkg::Arch: Fix debwildcard_to_debtuple() on quadruplets
The function was splitting tuples at most into three elements, which
made it unable to handle quadruplets.
Extend the unit tests to cover wildcard quadruplets.
Missed in commit 9d7ba99cc3ff84fc553ed39da9d2e4f4008d35b6.
Reported-by: Julian Andres Klode <jak@debian.org>
Diffstat (limited to 'scripts/Dpkg/Arch.pm')
-rw-r--r-- | scripts/Dpkg/Arch.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Arch.pm b/scripts/Dpkg/Arch.pm index 1b39bf5df..77f87b231 100644 --- a/scripts/Dpkg/Arch.pm +++ b/scripts/Dpkg/Arch.pm @@ -447,7 +447,7 @@ sub gnutriplet_to_debarch($) sub debwildcard_to_debtuple($) { my $arch = shift; - my @tuple = split /-/, $arch, 3; + my @tuple = split /-/, $arch, 4; if (any { $_ eq 'any' } @tuple) { if (scalar @tuple == 4) { |