From 85fa0aea48bff9340dffda6d136035f283863237 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Nov 2021 15:39:27 +0100 Subject: match both locales-xx & locales-xx_YY (mga#9683) --- pm/MGATools/rpmsrate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm index a4611e9..195122f 100644 --- a/pm/MGATools/rpmsrate.pm +++ b/pm/MGATools/rpmsrate.pm @@ -94,7 +94,7 @@ sub check_if_expandable { # some i18n packages does not require the same locale, e.g. kde-i18n-nb and nn requires locales-no # if (grep { s/locales-// && $loc =~ /^$_(_|$)/ } @{$header{REQUIRENAME}}) { - if (any { /^locales-../ } $pkg->requires) { + if (any { /^locales-[a-zA-Z_]*/ } $pkg->requires) { push @{$locale->{$pg}}, $loc; $localized_pkg->{"$pg-$loc"} = 1; } -- cgit v1.2.1