fix sort(l) vs l.sort() typo

This commit is contained in:
Tomas Kopecek 2018-07-02 10:38:38 +02:00 committed by Mike McLean
parent 242e143b97
commit 9b3cf26dc2

View file

@ -559,8 +559,7 @@ class TrackedBuild(object):
base.append(name)
if len(tags) > 1:
log("Warning: found multiple buildroot tags for %s: %s" % (self.nvr, to_list(tags.keys())))
counts = [(n, tag) for tag, n in six.iteritems(tags)]
sort(counts)
counts = sorted([(n, tag) for tag, n in six.iteritems(tags)])
tag = counts[-1][1]
else:
tag = to_list(tags.keys())[0]