From 0467b3fa3b425dd9fb530f94fd438db87cdb0755 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 20 Jan 2013 10:44:34 +0000 Subject: (_is_selected_or_installed ) fix scoring locale packages revert part of commit r5052 (June 28 2012, "light speedups") --- NEWS | 2 ++ URPM/Resolve.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1