Fix datatype and encoding for yum spider

This commit is contained in:
Magnus Hagander
2019-01-26 16:45:41 +01:00
parent 1f34abf878
commit b74fa2146a
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ if __name__ == "__main__":
if pinfo['p'] == familypath and pinfo['f'] == shortdist:
if p not in reporpms[v]:
reporpms[v][p] = {}
reporpms[v][p][arch] = max(ver, reporpms[v][p].get(arch, 0))
reporpms[v][p][arch] = max(int(ver), int(reporpms[v][p].get(arch, 0)))
platforms[p]['found'] = True
break
else: