aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rpmtools.pm')
-rw-r--r--rpmtools.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpmtools.pm b/rpmtools.pm
index 8ef4dee..5d5ea6d 100644
--- a/rpmtools.pm
+++ b/rpmtools.pm
@@ -427,8 +427,7 @@ sub relocate_depslist {
if ($p) {
my $cmp_version = version_compare($_->{version}, $p->{version});
my $cmp_release = $cmp_version == 0 && version_compare($_->{release}, $p->{release});
- if ($cmp_version > 0 ||
- $cmp_release > 0 ||
+ if ($_->{serial} > $p->{serial} || $cmp_version > 0 || $cmp_release > 0 ||
$cmp_version == 0 && $cmp_release == 0 && better_arch($_->{arch}, $p->{arch})) {
$params->{info}{$_->{name}} = $_;
++$relocated_entries;