diff options
author | Francois Pons <fpons@mandriva.com> | 2001-06-27 15:18:09 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-06-27 15:18:09 +0000 |
commit | 90f0ddcedeae721156de02165ba43368ca19545f (patch) | |
tree | 83b12f4de3975a705f5cc9be21a60e00329ea846 /rpmtools.pm | |
parent | 038e468d6fa67c59b70ef5ef879ddaab231ffe96 (diff) | |
download | rpmtools-90f0ddcedeae721156de02165ba43368ca19545f.tar rpmtools-90f0ddcedeae721156de02165ba43368ca19545f.tar.gz rpmtools-90f0ddcedeae721156de02165ba43368ca19545f.tar.bz2 rpmtools-90f0ddcedeae721156de02165ba43368ca19545f.tar.xz rpmtools-90f0ddcedeae721156de02165ba43368ca19545f.zip |
*** empty log message ***
Diffstat (limited to 'rpmtools.pm')
-rw-r--r-- | rpmtools.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmtools.pm b/rpmtools.pm index 5d5ea6d..5dceb4a 100644 --- a/rpmtools.pm +++ b/rpmtools.pm @@ -425,10 +425,11 @@ sub relocate_depslist { } if (compat_arch($_->{arch})) { if ($p) { - my $cmp_version = version_compare($_->{version}, $p->{version}); + my $cmp_version = $_->{serial} == $p->{serial} && version_compare($_->{version}, $p->{version}); my $cmp_release = $cmp_version == 0 && version_compare($_->{release}, $p->{release}); if ($_->{serial} > $p->{serial} || $cmp_version > 0 || $cmp_release > 0 || - $cmp_version == 0 && $cmp_release == 0 && better_arch($_->{arch}, $p->{arch})) { + ($_->{serial} == $p->{serial} && $cmp_version == 0 && $cmp_release == 0 && + better_arch($_->{arch}, $p->{arch}))) { $params->{info}{$_->{name}} = $_; ++$relocated_entries; } |