diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 20:11:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 20:11:44 +0000 |
commit | 1dc3bbe378ae39b10765c9e0f2a0ef995b4a287c (patch) | |
tree | 2c5e8af0dae0ad1bff79e69cccc770300940cb44 /src | |
parent | 206c993e45c39e60eceae1f66c69d39903ab9266 (diff) |
move setMirror -> mirrors
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/__init__.py | 2 | ||||
-rw-r--r-- | src/backend/mirrors.py (renamed from src/backend/setMirror.py) | 0 | ||||
-rwxr-xr-x | src/frontend/cli/sisyphus-cli.py | 4 | ||||
-rw-r--r-- | src/frontend/gui/sisyphus-gui.py | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/__init__.py b/src/backend/__init__.py index 3cd1b2e..19276cc 100644 --- a/src/backend/__init__.py +++ b/src/backend/__init__.py @@ -4,13 +4,13 @@ from .getenv import * from .getfs import * from .install import * from .killemerge import * +from .mirrors import * from .purgeenv import * from .recoverdb import * from .solvedeps import * from .search import * from .setbranch import * from .setjobs import * -from .setMirror import * from .setprofile import * from .syncdb import * from .syncenv import * diff --git a/src/backend/setMirror.py b/src/backend/mirrors.py index ad02f58..ad02f58 100644 --- a/src/backend/setMirror.py +++ b/src/backend/mirrors.py 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() |