summaryrefslogtreecommitdiff
path: root/src/backend/setbranch.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-25 21:35:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-25 22:12:43 +0000
commit7d32051b5114160c66c354972f8a64a00d331c6c (patch)
tree06e6a60d9468d159cb4bd52a79581315ff8bcea8 /src/backend/setbranch.py
parent17b776830e4468080c1b0f09685b4aa4f7b9eaf3 (diff)
rename some functionsv6.2402.0
Diffstat (limited to 'src/backend/setbranch.py')
-rw-r--r--src/backend/setbranch.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py
index 05b6c5c..4763b60 100644
--- a/src/backend/setbranch.py
+++ b/src/backend/setbranch.py
@@ -9,9 +9,9 @@ import sys
import sisyphus.checkenv
import sisyphus.getclr
import sisyphus.getfs
-import sisyphus.mirrors
import sisyphus.purgeenv
import sisyphus.setjobs
+import sisyphus.setmirror
import sisyphus.setprofile
@@ -82,17 +82,17 @@ def ins_p_cfg_repo(branch, remote):
def set_brch_master_index():
- mirrorList = sisyphus.mirrors.getList()
+ mirrorList = sisyphus.setmirror.getList()
odd_indices = [i + 1 for i in range(len(mirrorList)) if (i + 1) % 2 == 1]
chosen_index = random.choice(odd_indices)
- sisyphus.mirrors.setActive(chosen_index)
+ sisyphus.setmirror.setActive(chosen_index)
def set_brch_next_index():
- mirrorList = sisyphus.mirrors.getList()
+ mirrorList = sisyphus.setmirror.getList()
even_indices = [i + 1 for i in range(len(mirrorList)) if (i + 1) % 2 == 0]
chosen_index = random.choice(even_indices)
- sisyphus.mirrors.setActive(chosen_index)
+ sisyphus.setmirror.setActive(chosen_index)
def set_bhst_index(branch, remote):