aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 10:44:34 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 10:44:34 +0000
commit0467b3fa3b425dd9fb530f94fd438db87cdb0755 (patch)
tree70f4e166372c545999a9dbef64857a8eae4dbe5f
parent5620e0f0e4d2352baf731a457fde39879c0d61a6 (diff)
downloadperl-URPM-0467b3fa3b425dd9fb530f94fd438db87cdb0755.tar
perl-URPM-0467b3fa3b425dd9fb530f94fd438db87cdb0755.tar.gz
perl-URPM-0467b3fa3b425dd9fb530f94fd438db87cdb0755.tar.bz2
perl-URPM-0467b3fa3b425dd9fb530f94fd438db87cdb0755.tar.xz
perl-URPM-0467b3fa3b425dd9fb530f94fd438db87cdb0755.zip
(_is_selected_or_installed ) fix scoring locale packages
revert part of commit r5052 (June 28 2012, "light speedups")
-rw-r--r--NEWS2
-rw-r--r--URPM/Resolve.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4550887..f394c36 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix scoring locale packages
+
Version 4.22 - 17 December 2012
- rpm-4.11 fixes:
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index b0df240..495d8e5 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -162,7 +162,7 @@ sub _is_selected_or_installed {
my ($urpm, $db, $name) = @_;
(grep { $_->flag_available } $urpm->packages_providing($name)) > 0 ||
- $db->traverse_tag_find('name', $name, sub {}) > 0;
+ $db->traverse_tag('name', [ $name ], undef) > 0;
}
#- finds $pkg "provides" that matches $provide_name, and returns the version provided