summaryrefslogtreecommitdiff
path: root/src/backend/setbranch.py
diff options
context:
space:
mode:
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):