aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rpmtools.pm')
-rw-r--r--rpmtools.pm5
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;
}