summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-11-18 15:39:27 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2021-11-18 15:39:27 +0100
commit85fa0aea48bff9340dffda6d136035f283863237 (patch)
tree950db998aeab36f3368d3e9070e6d1db0cc4a389
parent5f6e54c2a40a39611c26850b1b61447d2198258a (diff)
downloadmgatools-85fa0aea48bff9340dffda6d136035f283863237.tar
mgatools-85fa0aea48bff9340dffda6d136035f283863237.tar.gz
mgatools-85fa0aea48bff9340dffda6d136035f283863237.tar.bz2
mgatools-85fa0aea48bff9340dffda6d136035f283863237.tar.xz
mgatools-85fa0aea48bff9340dffda6d136035f283863237.zip
match both locales-xx & locales-xx_YY (mga#9683)HEADmaster
-rw-r--r--pm/MGATools/rpmsrate.pm2
1 files changed, 1 insertions, 1 deletions
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;
}