|
|
|
@ -23,7 +23,7 @@ from operator import itemgetter
|
|
|
|
|
from calculate.lib.datavars import (Variable, VariableError, ReadonlyVariable,
|
|
|
|
|
CommonVariableError)
|
|
|
|
|
from calculate.lib.utils.common import (getSupportArch, getTupleVersion,
|
|
|
|
|
cmpVersion)
|
|
|
|
|
cmpVersion, cmp)
|
|
|
|
|
from calculate.lib.utils.files import listDirectory, pathJoin
|
|
|
|
|
from calculate.lib.variables.linux import Linux
|
|
|
|
|
from ..distr import (Distributive, PartitionDistributive,
|
|
|
|
@ -177,11 +177,7 @@ class DistroRepository(Linux):
|
|
|
|
|
'partdir': -3,
|
|
|
|
|
'dir': -4}
|
|
|
|
|
|
|
|
|
|
# return cmp(mapExts.get(exts[0], -4), mapExts.get(exts[1], -4))
|
|
|
|
|
#no cmp in python3, instead do (a > b) - (a < b)
|
|
|
|
|
return (mapExts.get(exts[0], -4) > mapExts.get(exts[1], -4)) - \
|
|
|
|
|
(mapExts.get(exts[0], -4) < mapExts.get(exts[1], -4))
|
|
|
|
|
|
|
|
|
|
return cmp(mapExts.get(exts[0], -4), mapExts.get(exts[1], -4))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|