From a1067ff82a989fb6d7d8026bd16992ab9fb13898 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 6 Mar 2021 21:43:18 +0000 Subject: backend: * drop some checks we had in place due to expensive metadata regen * less time checking -> more time working -> faster sisyphus --- src/backend/update.py | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'src/backend/update.py') 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)") -- cgit v1.2.3