From fb8b83bdf462704a97ca3b98c658df3f95f075b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=94=D0=B7=D1=8E=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Mon, 27 Sep 2021 10:02:17 +0300 Subject: [PATCH] fixed extcomparator --- pym/install/variables/distr.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/install/variables/distr.py b/pym/install/variables/distr.py index 8e96ceb..9fe465c 100644 --- a/pym/install/variables/distr.py +++ b/pym/install/variables/distr.py @@ -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