diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM/Resolve.pm | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- don't resolve suggested virtual packages if already installed (#34376) + Version 2.06 - 28 September 2007, by Pascal "Pixel" Rigaux - also handle promotion via obsolete for conflicts diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 85d4bff..23656a0 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -705,6 +705,14 @@ sub resolve_requested { delete $suggests{$_} foreach $p->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 { + delete $suggests{$suggest}; + }); + } + %suggests or next; $urpm->{debug_URPM}("requested " . join(', ', keys %suggests) . " suggested by " . $pkg->fullname) if $urpm->{debug_URPM}; |