diff options
-rw-r--r-- | URPM/Resolve.pm | 2 |
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 { |