fix tuple expansion in args
This commit is contained in:
parent
d9ac4ed85c
commit
f464160ac6
1 changed files with 2 additions and 2 deletions
|
|
@ -662,9 +662,9 @@ class BuildTracker(object):
|
||||||
return grey
|
return grey
|
||||||
return default
|
return default
|
||||||
|
|
||||||
def rpmvercmp(self, (e1, v1, r1), (e2, v2, r2)):
|
def rpmvercmp(self, nvr1, nvr2):
|
||||||
"""find out which build is newer"""
|
"""find out which build is newer"""
|
||||||
rc = rpm.labelCompare((e1, v1, r1), (e2, v2, r2))
|
rc = rpm.labelCompare(nvr1, nvr2)
|
||||||
if rc == 1:
|
if rc == 1:
|
||||||
#first evr wins
|
#first evr wins
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue