From df346a9e0facec5bc7e69a106d4e0e3776c966a4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 15 Feb 2021 00:59:05 +0000 Subject: backend : enable bdeps by default in solvedeps && install && ebuildinstall modules so we get everything in one go --- src/backend/update.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/backend/update.py') diff --git a/src/backend/update.py b/src/backend/update.py index efb8dfc..df6dc5d 100644 --- a/src/backend/update.py +++ b/src/backend/update.py @@ -10,14 +10,17 @@ import sisyphus.database import sisyphus.metadata import sisyphus.sync -def dosync(): +def syncAll(): sisyphus.sync.portage() sisyphus.sync.overlay() sisyphus.sync.portageCfg() sisyphus.database.syncRemote() sisyphus.metadata.regenSilent() -def checksync(): +def syncCfg(): + sisyphus.sync.portageCfg() + +def doSync(): sisyphus.cache.clean() needsPortage = sisyphus.check.portage() @@ -25,14 +28,14 @@ def checksync(): if needsPortage == 1: if needsOverlay == 1: - dosync() + syncAll() elif not needsOverlay == 1: - dosync() + syncAll() elif not needsPortage == 1: if needsOverlay == 1: - dosync() + syncAll() elif not needsOverlay == 1: - sisyphus.sync.portageCfg() + syncCfg() @animation.wait('fetching updates') def start(): @@ -40,7 +43,7 @@ def start(): needsMatch,localBranch = sisyphus.check.match() if needsMatch == 0: - checksync() + doSync() else: if "packages-next" in isBinhost: print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)") @@ -53,7 +56,7 @@ def startqt(): needsMatch,localBranch = sisyphus.check.match() if needsMatch == 0: - checksync() + doSync() else: if "packages-next" in isBinhost: print("\nCurrent branch: '" + localBranch.decode().strip() + "' (stable)" + "\nCurrent binhost: '" + isBinhost + "' (testing)") -- cgit v1.2.3