diff options
author | Francois Pons <fpons@mandriva.com> | 2003-02-19 13:28:55 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-02-19 13:28:55 +0000 |
commit | 63bb546235800174f76babe8d14cc74298b9936d (patch) | |
tree | 3597dc758d5cf617263ea55becd049934df87789 /URPM | |
parent | 1417b7fbb2a2504c838089820002d8cd0b5d893b (diff) | |
download | perl-URPM-63bb546235800174f76babe8d14cc74298b9936d.tar perl-URPM-63bb546235800174f76babe8d14cc74298b9936d.tar.gz perl-URPM-63bb546235800174f76babe8d14cc74298b9936d.tar.bz2 perl-URPM-63bb546235800174f76babe8d14cc74298b9936d.tar.xz perl-URPM-63bb546235800174f76babe8d14cc74298b9936d.zip |
0.81-9mdk
Diffstat (limited to 'URPM')
-rw-r--r-- | URPM/Resolve.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index d2677ca..ae4d5b4 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -672,7 +672,7 @@ sub request_packages_to_upgrade { foreach my $pkg (values %names) { foreach ($pkg->obsoletes) { if (my ($n, $o, $v) = /^([^\s\[]*)(?:\[\*\])?\[?([^\s\]]*)\s*([^\s\]]*)/) { - if ($names{$n} && (!$o || eval($names{$n}->compare($v) . $o . 0))) { + if ($n ne $pkg->name && $names{$n} && (!$o || eval($names{$n}->compare($v) . $o . 0))) { #- an existing best package is obsoleted by another one. $skip{$n} = undef; } |