diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-15 15:09:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-15 15:09:48 +0100 |
commit | c07b06aa7ab944b5fee70d5a37ef60a45ff1c24b (patch) | |
tree | eefe1fcbeee8bc7d9ba37d4ef57e19a0851144cd /src/backend/update.py | |
parent | 47acd0b822261b6b934f47b89b2276a686cc1865 (diff) |
split extra long prints into smaller ones, improve code readabilityv6.2304.0
Diffstat (limited to 'src/backend/update.py')
-rw-r--r-- | src/backend/update.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/backend/update.py b/src/backend/update.py index f369c97..face3f2 100644 --- a/src/backend/update.py +++ b/src/backend/update.py @@ -50,11 +50,15 @@ def start(gfx_ui=False): sync_evrth() else: if "packages-next" in bhst_addr: - print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + actv_brch + "'" + " " + "(stable)" + - " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bhst_addr + "'" + " " + "(testing)") + print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + + sisyphus.getcolor.reset + "'" + actv_brch + "'" + " " + "(stable)") + print(sisyphus.getcolor.green + "\nActive binhost:" + " " + + sisyphus.getcolor.reset + "'" + bhst_addr + "'" + " " + "(testing)") else: - print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + actv_brch + "'" + " " + "(testing)" + - " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bhst_addr + "'" + " " + "(stable)") + print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + + sisyphus.getcolor.reset + "'" + actv_brch + "'" + " " + "(testing)") + print(sisyphus.getcolor.green + "\nActive binhost:" + " " + + sisyphus.getcolor.reset + "'" + bhst_addr + "'" + " " + "(stable)") if gfx_ui: print("\n\nInvalid configuration!") @@ -65,6 +69,8 @@ def start(gfx_ui=False): sys.exit(app.exec_()) # kill GUI window else: - print(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) + print(sisyphus.getcolor.bright_red + + "\n\nInvalid configuration!" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) sys.exit() |