This commit is contained in:
Alexander Stefanov 2019-04-12 00:56:03 +03:00
parent fd7ad7c3c8
commit 7a0ebf0523

View file

@ -68,7 +68,7 @@ for pkg in glob.glob("/home/omv/output/*.rpm"):
print(existing_pkg)
continue
res = rpm5utils.miscutils.compareDEVR( (distepoch, epoch, version, release), (ex_distepoch, ex_epoch, ex_version, ex_release) )
res = rpm5utils.miscutils.compareEVRD((distepoch, epoch, version, release), (ex_distepoch, ex_epoch, ex_version, ex_release))
if res < 1:
print(("A package with the same name (" + name + ") and same or newer version (" + evrd + ") already exists in repositories!"))
exit_code = 1