summaryrefslogtreecommitdiff
path: root/src/backend/updateAll.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-26 00:05:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-26 00:05:14 +0100
commitc7edab17a1b130b88010b26f1789da0569291676 (patch)
tree7ce8e192abcc5e106c2e2dc7c731bb13b054aa6b /src/backend/updateAll.py
parent3a0e9fe9197a931c1f10208d7690b9d72ac42530 (diff)
merge getCSV && getBinhost into getEnvironment
Diffstat (limited to 'src/backend/updateAll.py')
-rw-r--r--src/backend/updateAll.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/updateAll.py b/src/backend/updateAll.py
index 7dfd157..c5809ab 100644
--- a/src/backend/updateAll.py
+++ b/src/backend/updateAll.py
@@ -4,7 +4,7 @@ import animation
import sys
import time
import sisyphus.checkEnvironment
-import sisyphus.getBinhost
+import sisyphus.getEnvironment
import sisyphus.purgeEnvironment
import sisyphus.syncDatabase
import sisyphus.syncEnvironment
@@ -19,30 +19,30 @@ def syncAll():
@animation.wait('fetching updates')
def start():
activeBranch = sisyphus.checkEnvironment.branch()
- isBinhost = sisyphus.getBinhost.start()
+ binhostURL = sisyphus.getEnvironment.binhostURL()
isSane = sisyphus.checkEnvironment.sanity()
if isSane == 1:
syncAll()
else:
- if "packages-next" in isBinhost:
- print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")
+ if "packages-next" in binhostURL:
+ print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
else:
- print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + isBinhost + "' (stable)")
+ print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
sys.exit("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting.")
def startqt():
activeBranch = sisyphus.checkEnvironment.branch()
- isBinhost = sisyphus.getBinhost.start()
+ binhostURL = sisyphus.getEnvironment.binhostURL()
isSane = sisyphus.checkEnvironment.sanity()
if isSane == 1:
syncAll()
else:
- if "packages-next" in isBinhost:
- print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")
+ if "packages-next" in binhostURL:
+ print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
else:
- print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + isBinhost + "' (stable)")
+ print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
print("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting in 10 seconds.\n")
t = int(10)
while t: