summaryrefslogtreecommitdiffstats
path: root/pm/MGATools/rpmsrate.pm
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2024-02-03 17:44:34 -0800
committerDan Fandrich <dan@coneharvesters.com>2024-02-03 17:55:16 -0800
commitcde72109102eda2442decb96f33a85f15afa6d32 (patch)
tree1a60c0a1385d0643c8c58062fa0b143a917d4466 /pm/MGATools/rpmsrate.pm
parent20865cc23ddcc2e24c29f31d8339dd6f2e27d163 (diff)
downloadmgatools-cde72109102eda2442decb96f33a85f15afa6d32.tar
mgatools-cde72109102eda2442decb96f33a85f15afa6d32.tar.gz
mgatools-cde72109102eda2442decb96f33a85f15afa6d32.tar.bz2
mgatools-cde72109102eda2442decb96f33a85f15afa6d32.tar.xz
mgatools-cde72109102eda2442decb96f33a85f15afa6d32.zip
Only match locales- packages for a specific country
The previous regex would also match a non-specific one. Such doesn't currently exist so this shouldn't currently make a difference.
Diffstat (limited to 'pm/MGATools/rpmsrate.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 195122f..5effe94 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-[a-zA-Z_]*/ } $pkg->requires) {
+ if (any { /^locales-[a-zA-Z_]+/ } $pkg->requires) {
push @{$locale->{$pg}}, $loc;
$localized_pkg->{"$pg-$loc"} = 1;
}