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