put distepoch in the right place

This commit is contained in:
Alexander Stefanov 2019-04-14 21:01:40 +00:00
parent fe5e85fadd
commit 5f0ba6d71b

View file

@ -72,7 +72,8 @@ for pkg in files:
print(existing_pkg) print(existing_pkg)
continue 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: if res < 1:
print(("A package with the same name (" + name + ") and same or newer version (" + evrd + ") already exists in repositories!")) print(("A package with the same name (" + name + ") and same or newer version (" + evrd + ") already exists in repositories!"))
exit_code = 1 exit_code = 1