From e8d687a1093124fdb17c7ac6569c5a605b2da2f1 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 15 Jan 2017 03:29:29 +0100 Subject: 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 --- scripts/Dpkg/Arch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg') 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) { -- cgit v1.2.3