From a9d87ee5bd0c98b6daae9ddf307c634da9c35551 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 11 Mar 2023 05:32:19 +0000 Subject: run autopep8 on the code --- src/backend/update.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/backend/update.py') diff --git a/src/backend/update.py b/src/backend/update.py index 08765a7..dc16d4c 100644 --- a/src/backend/update.py +++ b/src/backend/update.py @@ -11,7 +11,7 @@ import sisyphus.syncdb import sisyphus.syncenv -def syncAll(): +def sync_evrth(): sisyphus.syncenv.g_repo() sisyphus.syncenv.r_repo() sisyphus.syncenv.p_cfg_repo() @@ -20,37 +20,37 @@ def syncAll(): @animation.wait('fetching updates') def start(): - act_brch = sisyphus.getenv.sys_brch() - bh_addr = sisyphus.getenv.bh_addr() + actv_brch = sisyphus.getenv.sys_brch() + bhst_addr = sisyphus.getenv.bhst_addr() is_sane = sisyphus.checkenv.sanity() if is_sane == 1: - syncAll() + sync_evrth() else: - if "packages-next" in bh_addr: - print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + act_brch + "'" + " " + "(stable)" + - " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bh_addr + "'" + " " + "(testing)") + 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)") else: - 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) + print(sisyphus.getcolor.green + "\n\nActive branch:" + " " + sisyphus.getcolor.reset + "'" + actv_brch + "'" + " " + "(testing)" + + " " + sisyphus.getcolor.green + "\nActive binhost:" + " " + sisyphus.getcolor.reset + "'" + bhst_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(): - act_brch = sisyphus.getenv.sys_brch() - bh_addr = sisyphus.getenv.bh_addr() + actv_brch = sisyphus.getenv.sys_brch() + bhst_addr = sisyphus.getenv.bhst_addr() is_sane = sisyphus.checkenv.sanity() if is_sane == 1: - syncAll() + sync_evrth() else: - if "packages-next" in bh_addr: - print("\n\nActive branch:" + " " + "'" + act_brch + "'" + " " + "(stable)" + - "\nActive binhost:" + " " + "'" + bh_addr + "'" + " " + "(testing)") + if "packages-next" in bhst_addr: + print("\n\nActive branch:" + " " + "'" + actv_brch + "'" + " " + "(stable)" + + "\nActive binhost:" + " " + "'" + bhst_addr + "'" + " " + "(testing)") else: - print("\n\nActive branch:" + " " + "'" + act_brch + "'" + " " + "(testing)" + - "\nActive binhost:" + " " + "'" + bh_addr + "'" + " " + "(stable)") + print("\n\nActive branch:" + " " + "'" + actv_brch + "'" + " " + "(testing)" + + "\nActive binhost:" + " " + "'" + bhst_addr + "'" + " " + "(stable)") print("\n\nInvalid configuration!" + "\nUse 'sisyphus branch --help' for help\n") t = int(10) -- cgit v1.2.3