fixed extcomparator

master 3.7.1.4
parent 6ef7e912f3
commit fb8b83bdf4

@ -169,15 +169,14 @@ class DistroRepository(Linux):
return [x for x in reduce(lambda x, y: x + y, allFiles, []) if distfilter(x)]
@staticmethod
def extcomparator(self, *exts):
def extcomparator(ext1, ext2):
"""Compare extensions"""
mapExts = {'iso': 0,
'flash': -1,
'isodir': -2,
'partdir': -3,
'dir': -4}
return cmp(mapExts.get(exts[0], -4), mapExts.get(exts[1], -4))
return cmp(mapExts.get(ext1, -4), mapExts.get(ext2, -4))
@staticmethod

Loading…
Cancel
Save