summaryrefslogtreecommitdiff
path: root/src/backend/update.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-11 05:32:19 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-11 05:32:19 +0000
commita9d87ee5bd0c98b6daae9ddf307c634da9c35551 (patch)
tree3ae25a65b1511d7a9368fa21b4779a6880a132b7 /src/backend/update.py
parent4edf9a7f554f183ccc34b0e57e734a2cbd6f5b9d (diff)
run autopep8 on the code
Diffstat (limited to 'src/backend/update.py')
-rw-r--r--src/backend/update.py38
1 files changed, 19 insertions, 19 deletions
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)