summaryrefslogtreecommitdiffstats
path: root/pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-15 19:12:33 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-15 19:12:33 +0000
commit0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1 (patch)
treeaefb363dc904657306f04f636f385a403ca814b0 /pm
parent3b9d8f4e7100d2c3b27955c61ddad7c6f16dfbb9 (diff)
downloadmgatools-0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1.tar
mgatools-0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1.tar.gz
mgatools-0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1.tar.bz2
mgatools-0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1.tar.xz
mgatools-0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1.zip
(check_if_expandable) fix matching locales-xx_XX for localized packages
(eg: would be needed for gcompris-sound-zh*)
Diffstat (limited to 'pm')
-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 14bd2ac..31ffa84 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-../ } $pkg->requires) {
push @{$locale->{$pg}}, $loc;
$localized_pkg->{"$pg-$loc"} = 1;
}