From 8a90fb13057dde4edaea7c368ed30bf58e282cd4 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 6 Jan 2003 16:33:17 +0000 Subject: 0.81-6mdk --- URPM/Resolve.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'URPM') diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 0e6041b..0717e5d 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -312,8 +312,9 @@ sub resolve_requested { #- all package with the same name should now be avoided except what is chosen. $p->fullname eq $pkg->fullname or $avoided{$p->fullname} = $pkg->fullname; } else { - #- in case of obsoletes, keep track of what should be avoided. - !$o || eval($p->compare($v) . $o . 0) or next; + #- in case of obsoletes, keep track of what should be avoided + #- but only if package name equals the obsolete name. + $p->name eq $n && (!$o || eval($p->compare($v) . $o . 0)) or next; $avoided{$p->fullname} = $pkg->fullname; } } -- cgit v1.2.1