diff options
author | Francois Pons <fpons@mandriva.com> | 2003-01-06 16:33:17 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-01-06 16:33:17 +0000 |
commit | 8a90fb13057dde4edaea7c368ed30bf58e282cd4 (patch) | |
tree | cf5944fe92aebc0110e32f98da58c891b922ca6a /URPM | |
parent | 552ab6f5bc019f71383251b9cd519b98ef04e86a (diff) | |
download | perl-URPM-8a90fb13057dde4edaea7c368ed30bf58e282cd4.tar perl-URPM-8a90fb13057dde4edaea7c368ed30bf58e282cd4.tar.gz perl-URPM-8a90fb13057dde4edaea7c368ed30bf58e282cd4.tar.bz2 perl-URPM-8a90fb13057dde4edaea7c368ed30bf58e282cd4.tar.xz perl-URPM-8a90fb13057dde4edaea7c368ed30bf58e282cd4.zip |
0.81-6mdk
Diffstat (limited to 'URPM')
-rw-r--r-- | URPM/Resolve.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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; } } |