From 5f0ba6d71b10871dff37374afbffd9c28ba80acc Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Sun, 14 Apr 2019 21:01:40 +0000 Subject: [PATCH] put distepoch in the right place --- check_newer_versions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_newer_versions.py b/check_newer_versions.py index ae6e33f..094da21 100755 --- a/check_newer_versions.py +++ b/check_newer_versions.py @@ -72,7 +72,8 @@ for pkg in files: print(existing_pkg) continue - res = rpm5utils.miscutils.compareEVRD((distepoch, epoch, version, release), (ex_distepoch, ex_epoch, ex_version, ex_release)) + res = rpm5utils.miscutils.compareEVRD((epoch, version, release, distepoch), (ex_epoch, ex_version, ex_release, ex_distepoch)) + print(res) if res < 1: print(("A package with the same name (" + name + ") and same or newer version (" + evrd + ") already exists in repositories!")) exit_code = 1