From 2fdc1581d2cc357f984a93c191713414f16b88f0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Mar 2018 10:09:43 +0100 Subject: move functions to backend, where they belong --- src/frontend/cli/sisyphus-cli.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/frontend/cli') diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 97e5017..f02ef58 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -5,30 +5,6 @@ from libsisyphus import * check_system_mode() -def listRepo(): - mirrorList = getMirrors() - for i, line in enumerate(mirrorList): - if line['isActive']: - print(i+1,'*',line['Url']) - else: - print(i+1,' ',line['Url']) - -def setRepo(mirror): - mirror = int(mirror[0]) - mirrorList = getMirrors() - newMirrorList = [] - if mirror not in range(1,len(mirrorList)+1): - print('mirror index is wrong, please check with "sisyphus mirror list"') - else: - for i, line in enumerate(mirrorList): - indx = i+1 - if indx == mirror : - line['isActive'] = True - else: - line['isActive'] = False - newMirrorList.append(line) - setActiveMirror(newMirrorList) - PKGLIST = sys.argv[2:] if "__main__" == __name__: -- cgit v1.2.3