From 0fe91460dbc8bebd3052ca768692f85e3b14336c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 15 Feb 2013 01:33:05 +0100 Subject: (resolve_requested_suggests) small optimization --- URPM/Resolve.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'URPM') diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 4ad9e7c..1c2d43f 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -895,7 +895,7 @@ sub resolve_requested_suggests { # workaround: if you do "urpmi virtual_pkg" and one virtual_pkg is already installed, # it will ask anyway for the other choices foreach my $suggest (keys %suggests) { - $db->traverse_tag('whatprovides', [ $suggest ], sub { + $db->traverse_tag_find('whatprovides', $suggest, sub { delete $suggests{$suggest}; }); } -- cgit v1.2.1