python-modernize -f lib2to3.fixes.fix_tuple_params
This commit is contained in:
parent
e8cf04f6ad
commit
c87cab8f54
1 changed files with 3 additions and 1 deletions
|
|
@ -662,8 +662,10 @@ class BuildTracker(object):
|
|||
return grey
|
||||
return default
|
||||
|
||||
def rpmvercmp(self, (e1, v1, r1), (e2, v2, r2)):
|
||||
def rpmvercmp(self, evr1, evr2):
|
||||
"""find out which build is newer"""
|
||||
(e1, v1, r1) = evr1
|
||||
(e2, v2, r2) = evr2
|
||||
rc = rpm.labelCompare((e1, v1, r1), (e2, v2, r2))
|
||||
if rc == 1:
|
||||
#first evr wins
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue