From e3fa4634750ccceb23998fadefc249b35f86ca5b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 8 Feb 2024 17:12:13 +0000 Subject: getcolor -> getclr --- src/backend/setbranch.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/backend/setbranch.py') 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() -- cgit v1.2.3