summaryrefslogtreecommitdiff
path: root/src/backend/update.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-02 02:09:50 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-02 02:09:50 +0000
commite8e43274a6dda2257f3a43dc2a20572f7779cce5 (patch)
tree61e8175d49c2fef900b2ffb5e9877ea1c98f96fe /src/backend/update.py
parent164772a639ba052169a95c102d38577eb46e285f (diff)
make this code more pretty
Diffstat (limited to 'src/backend/update.py')
-rw-r--r--src/backend/update.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/update.py b/src/backend/update.py
index 63624f5..a70d0e5 100644
--- a/src/backend/update.py
+++ b/src/backend/update.py
@@ -37,9 +37,9 @@ def checksync():
@animation.wait('fetching updates')
def start():
binhostURL = sisyphus.binhost.getURL()
- branchBinhostMatch,localBranch = sisyphus.check.branch()
+ needsMatch,localBranch = sisyphus.check.match()
- if branchBinhostMatch == 1:
+ if needsMatch == 0:
checksync()
else:
if "packages-next" in binhostURL:
@@ -50,9 +50,9 @@ def start():
def startqt():
binhostURL = sisyphus.binhost.getURL()
- branchBinhostMatch,localBranch = sisyphus.check.branch()
+ needsMatch,localBranch = sisyphus.check.match()
- if branchBinhostMatch == 1:
+ if needsMatch == 0:
checksync()
else:
if "packages-next" in binhostURL: