summaryrefslogtreecommitdiff
path: root/src/backend/update.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-02 22:44:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-02 22:44:34 +0000
commitc72f5dac54d4b8382a4d3891af07509ebe629f63 (patch)
tree58259dee11751843171e4f4e5fe809f6a90e585e /src/backend/update.py
parente8e43274a6dda2257f3a43dc2a20572f7779cce5 (diff)
minor changes
Diffstat (limited to 'src/backend/update.py')
-rw-r--r--src/backend/update.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/update.py b/src/backend/update.py
index a70d0e5..efb8dfc 100644
--- a/src/backend/update.py
+++ b/src/backend/update.py
@@ -36,29 +36,29 @@ def checksync():
@animation.wait('fetching updates')
def start():
- binhostURL = sisyphus.binhost.getURL()
+ isBinhost = sisyphus.binhost.start()
needsMatch,localBranch = sisyphus.check.match()
if needsMatch == 0:
checksync()
else:
- if "packages-next" in binhostURL:
- print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
+ if "packages-next" in isBinhost:
+ print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")
else:
- print("\nCurrent branch: '" + localBranch.decode().strip() + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
+ print("\nCurrent branch: '" + localBranch.decode().strip() + "' (testing)" + "\nCurrent binhost: '" + isBinhost + "' (stable)")
sys.exit("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting.")
def startqt():
- binhostURL = sisyphus.binhost.getURL()
+ isBinhost = sisyphus.binhost.start()
needsMatch,localBranch = sisyphus.check.match()
if needsMatch == 0:
checksync()
else:
- if "packages-next" in binhostURL:
- print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
+ if "packages-next" in isBinhost:
+ print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")
else:
- print("\nCurrent branch: '" + localBranch.decode().strip() + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
+ print("\nCurrent branch: '" + localBranch.decode().strip() + "' (testing)" + "\nCurrent binhost: '" + isBinhost + "' (stable)")
print("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting in 10 seconds.\n")
t = int(10)
while t: