https://bugzilla.novell.com/show_bug.cgi?id=331818 Summary: rpm.labelCompare from rpm-python should not use rpmvercmp() for compare epoch Product: openSUSE 10.2 Version: Final Platform: All OS/Version: openSUSE 10.2 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: evgsw@yahoo.com QAContact: qa@suse.de Found By: --- bug in rpm-python-4.4.2-76 and later bug arise during installing yast2-pkg-bindings via yum from with several repositories. It failed to find max version. And I get dependencies conflict. small test programm # cat test.py #!/usr/bin/python import rpm import types def rpmOutToStr(arg): if type(arg) != types.StringType: # and arg is not None: arg = str(arg) return arg def compareEVR((e1, v1, r1), (e2, v2, r2)): # return 1: a is newer than b # 0: a and b are the same version # -1: b is newer than a e1 = rpmOutToStr(e1) v1 = rpmOutToStr(v1) r1 = rpmOutToStr(r1) e2 = rpmOutToStr(e2) v2 = rpmOutToStr(v2) r2 = rpmOutToStr(r2) rc = rpm.labelCompare((e1, v1, r1), (e2, v2, r2)) print '%s, %s, %s vs %s, %s, %s = %s' % (e1, v1, r1, e2, v2, r2, rc) return rc compareEVR((None,'2.2','1'),('0','2.2','1')); ====================================== run on suse-10.0 (rpm-4.1) # python test.py None, 2.2, 1 vs 0, 2.2, 1 = 0 all is OK. None = 0. run on suse-10.2 (rpm-4.4) # python test.py None, 2.2, 1 vs 0, 2.2, 1 = -1 but None and '0' should be equals. it use rpmvercmp(). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.