summaryrefslogtreecommitdiff
path: root/src/backend/update.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-06 21:43:18 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-06 21:43:18 +0000
commita1067ff82a989fb6d7d8026bd16992ab9fb13898 (patch)
treecc3de7b56e2ac1c3ebce98b2b09389b6fd3cda78 /src/backend/update.py
parent170f9d7b708902c2f8b58d911383aef2ef35941a (diff)
backend:
* drop some checks we had in place due to expensive metadata regen * less time checking -> more time working -> faster sisyphus
Diffstat (limited to 'src/backend/update.py')
-rw-r--r--src/backend/update.py28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/backend/update.py b/src/backend/update.py
index 2b92dbd..82281fe 100644
--- a/src/backend/update.py
+++ b/src/backend/update.py
@@ -15,33 +15,13 @@ def syncAll():
sisyphus.sync.portageCfg()
sisyphus.database.syncRemote()
-def syncCfg():
- sisyphus.sync.portageCfg()
-
-def doSync():
- sisyphus.cache.purge()
-
- needsPortage = sisyphus.check.portage()
- needsOverlay = sisyphus.check.overlay()
-
- if needsPortage == 1:
- if needsOverlay == 1:
- syncAll()
- elif not needsOverlay == 1:
- syncAll()
- elif not needsPortage == 1:
- if needsOverlay == 1:
- syncAll()
- elif not needsOverlay == 1:
- syncCfg()
-
@animation.wait('fetching updates')
def start():
isBinhost = sisyphus.binhost.start()
- needsMatch,localBranch = sisyphus.check.match()
+ needsMatch,localBranch = sisyphus.check.branch()
if needsMatch == 0:
- doSync()
+ syncAll()
else:
if "packages-next" in isBinhost:
print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")
@@ -51,10 +31,10 @@ def start():
def startqt():
isBinhost = sisyphus.binhost.start()
- needsMatch,localBranch = sisyphus.check.match()
+ needsMatch,localBranch = sisyphus.check.branch()
if needsMatch == 0:
- doSync()
+ syncAll()
else:
if "packages-next" in isBinhost:
print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)")