From 0e86511f9d3bc43517873f25ad75b5fe1d5a2ed1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 15 Mar 2012 19:12:33 +0000 Subject: (check_if_expandable) fix matching locales-xx_XX for localized packages (eg: would be needed for gcompris-sound-zh*) --- NEWS | 2 ++ pm/MGATools/rpmsrate.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 NEWS diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..2bef300 --- /dev/null +++ b/NEWS @@ -0,0 +1,2 @@ +- clean-rpmsrate: + o fix matching locales-xx_XX for localized packages 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; } -- cgit v1.2.1