aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-14 15:17:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-14 15:17:49 +0000
commitad57e64946089332f2968a2c74a3fb3596542ef7 (patch)
treec50e265483caf1f33734c4bbeb0d71e94038df56
parent216c5d8c8a03238f40c89666e3da3f32ab628704 (diff)
downloadperl-URPM-ad57e64946089332f2968a2c74a3fb3596542ef7.tar
perl-URPM-ad57e64946089332f2968a2c74a3fb3596542ef7.tar.gz
perl-URPM-ad57e64946089332f2968a2c74a3fb3596542ef7.tar.bz2
perl-URPM-ad57e64946089332f2968a2c74a3fb3596542ef7.tar.xz
perl-URPM-ad57e64946089332f2968a2c74a3fb3596542ef7.zip
simplify
-rw-r--r--URPM/Resolve.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index e20c66e..c3ebd49 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -222,7 +222,7 @@ sub _score_for_locales {
my @r = $pkg->requires_nosense;
if (my ($specific_locales) = grep { /locales-(?!en)/ } @r) {
- if ((grep { $urpm->{depslist}[$_]->flag_available } keys %{$urpm->{provides}{$specific_locales}}) > 0 ||
+ if ((grep { $_->flag_available } $urpm->packages_providing($specific_locales)) > 0 ||
$db->traverse_tag('name', [ $specific_locales ], undef) > 0) {
3; # good locale
} else {