summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 20:11:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 20:11:44 +0000
commit1dc3bbe378ae39b10765c9e0f2a0ef995b4a287c (patch)
tree2c5e8af0dae0ad1bff79e69cccc770300940cb44 /src/frontend
parent206c993e45c39e60eceae1f66c69d39903ab9266 (diff)
move setMirror -> mirrors
Diffstat (limited to 'src/frontend')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py4
-rw-r--r--src/frontend/gui/sisyphus-gui.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 3124fd0..4a514c8 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -277,12 +277,12 @@ def sysinfo():
@mirrorSetup.command("list")
def mirrorlist():
"""List available binary package repository mirrors (the active one is marked with *)."""
- sisyphus.setMirror.printList()
+ sisyphus.mirrors.printList()
@mirrorSetup.command("set")
def mirrorset(index: int):
"""Change the binary package repository to the selected mirror."""
- sisyphus.setMirror.setActive(index)
+ sisyphus.mirrors.setActive(index)
if __name__ == "__main__":
if len(sys.argv) > 1 and not '--help' in sys.argv:
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index 020c47c..5b054e4 100644
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -320,7 +320,7 @@ class MirrorConfiguration(QtWidgets.QMainWindow):
super(MirrorConfiguration, self).__init__()
uic.loadUi('/usr/share/sisyphus/ui/mirrorcfg.ui', self)
self.centerOnScreen()
- self.MIRRORLIST = sisyphus.setMirror.getList()
+ self.MIRRORLIST = sisyphus.mirrors.getList()
self.updateMirrorList()
self.applyButton.pressed.connect(self.mirrorCfgApply)
self.applyButton.released.connect(self.mirrorCfgExit)
@@ -351,7 +351,7 @@ class MirrorConfiguration(QtWidgets.QMainWindow):
self.MIRRORLIST[self.ACTIVEMIRRORINDEX]['isActive'] = True
def mirrorCfgApply(self):
- sisyphus.setMirror.writeList(self.MIRRORLIST)
+ sisyphus.mirrors.writeList(self.MIRRORLIST)
def mirrorCfgExit(self):
self.close()