From cde72109102eda2442decb96f33a85f15afa6d32 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 3 Feb 2024 17:44:34 -0800 Subject: 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. --- 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 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; } -- cgit v1.2.1