summaryrefslogtreecommitdiff
path: root/src/frontend/cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-25 10:09:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-03-25 10:09:43 +0100
commit2fdc1581d2cc357f984a93c191713414f16b88f0 (patch)
tree35676f5011d44c445bd311b7672411c0a1314714 /src/frontend/cli
parenta40c32948f3064af491f1c20cf925b8f04758f30 (diff)
move functions to backend, where they belong
Diffstat (limited to 'src/frontend/cli')
-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__: