summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py24
1 files changed, 0 insertions, 24 deletions
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__: