diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-08 17:12:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-08 17:12:13 +0000 |
commit | e3fa4634750ccceb23998fadefc249b35f86ca5b (patch) | |
tree | 057ae3b8c0422db00e41abaaf9ca50b06e04148b /src/backend/setbranch.py | |
parent | 8d345d75ea4a692b3e9f2830465ec6b580eee730 (diff) |
getcolor -> getclr
Diffstat (limited to 'src/backend/setbranch.py')
-rw-r--r-- | src/backend/setbranch.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index ffec3b8..05b6c5c 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -7,7 +7,7 @@ import random import signal import sys import sisyphus.checkenv -import sisyphus.getcolor +import sisyphus.getclr import sisyphus.getfs import sisyphus.mirrors import sisyphus.purgeenv @@ -97,16 +97,16 @@ def set_brch_next_index(): def set_bhst_index(branch, remote): if "master" in branch: - print(sisyphus.getcolor.green + "\nActive branch switched:" + - " " + sisyphus.getcolor.reset + "'" + branch + "'") - print(sisyphus.getcolor.green + "Active remote switched:" + - " " + sisyphus.getcolor.reset + "'" + remote + "'") + print(sisyphus.getclr.green + "\nActive branch switched:" + + " " + sisyphus.getclr.reset + "'" + branch + "'") + print(sisyphus.getclr.green + "Active remote switched:" + + " " + sisyphus.getclr.reset + "'" + remote + "'") set_brch_master_index() # Set binhost index for branch 'master' (random odd index) elif "next" in branch: - print(sisyphus.getcolor.green + "\nActive branch switched:" + - " " + sisyphus.getcolor.reset + "'" + branch + "'") - print(sisyphus.getcolor.green + "Active remote switched:" + - " " + sisyphus.getcolor.reset + "'" + remote + "'") + print(sisyphus.getclr.green + "\nActive branch switched:" + + " " + sisyphus.getclr.reset + "'" + branch + "'") + print(sisyphus.getclr.green + "Active remote switched:" + + " " + sisyphus.getclr.reset + "'" + remote + "'") set_brch_next_index() # Set binhost index for branch 'next' (random even index) @@ -124,10 +124,10 @@ def start(branch, remote): sisyphus.setprofile.start() set_bhst_index(branch, remote) else: - print(sisyphus.getcolor.bright_red + - "\nNo internet connection; Aborting!\n" + sisyphus.getcolor.reset) + print(sisyphus.getclr.bright_red + + "\nNo internet connection; Aborting!\n" + sisyphus.getclr.reset) sys.exit() else: - print(sisyphus.getcolor.bright_red + - "\nYou need root permissions to do this!\n" + sisyphus.getcolor.reset) + print(sisyphus.getclr.bright_red + + "\nYou need root permissions to do this!\n" + sisyphus.getclr.reset) sys.exit() |