diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 19:37:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 19:37:11 +0000 |
commit | 4dda01f43e00a2412ee05595cb4d3ec559594f28 (patch) | |
tree | 9780c1a6d209a8089cbf374dc28c9c0f0cf83857 /src/backend/update.py | |
parent | 180c2e119142573d42fe0e67a42b3530a7aed70b (diff) |
systemBranch -> sys_brch; activeBranch -> act_brch; localBranch -> lcl_brch; remoteBranch -> rmt_brch
Diffstat (limited to 'src/backend/update.py')
-rw-r--r-- | src/backend/update.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/update.py b/src/backend/update.py index 60aae3c..57b05b6 100644 --- a/src/backend/update.py +++ b/src/backend/update.py @@ -20,7 +20,7 @@ def syncAll(): @animation.wait('fetching updates') def start(): - activeBranch = sisyphus.getenv.systemBranch() + act_brch = sisyphus.getenv.sys_brch() bh_addr = sisyphus.getenv.bh_addr() isSane = sisyphus.checkenv.sanity() @@ -28,17 +28,17 @@ def start(): syncAll() else: if "packages-next" in bh_addr: - print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + activeBranch + "'" + " " + "(stable)" + + print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + act_brch + "'" + " " + "(stable)" + " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bh_addr + "'" + " " + "(testing)") else: - print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + activeBranch + "'" + " " + "(testing)" + + print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + act_brch + "'" + " " + "(testing)" + " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bh_addr + "'" + " " + "(stable)") sys.exit(sisyphus.getcolor.bright_red + "\n\nInvalid configuration!" + sisyphus.getcolor.reset + sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) def xstart(): - activeBranch = sisyphus.getenv.systemBranch() + act_brch = sisyphus.getenv.sys_brch() bh_addr = sisyphus.getenv.bh_addr() isSane = sisyphus.checkenv.sanity() @@ -46,10 +46,10 @@ def xstart(): syncAll() else: if "packages-next" in bh_addr: - print("\n\nActive branch:" + " " + "'" + activeBranch + "'" + " " + "(stable)" + + print("\n\nActive branch:" + " " + "'" + act_brch + "'" + " " + "(stable)" + "\nActive binhost:" + " " + "'" + bh_addr + "'" + " " + "(testing)") else: - print("\n\nActive branch:" + " " + "'" + activeBranch + "'" + " " + "(testing)" + + print("\n\nActive branch:" + " " + "'" + act_brch + "'" + " " + "(testing)" + "\nActive binhost:" + " " + "'" + bh_addr + "'" + " " + "(stable)") print("\n\nInvalid configuration!" + "\nUse 'sisyphus branch --help' for help\n") |