diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-15 00:59:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-15 00:59:05 +0000 |
commit | df346a9e0facec5bc7e69a106d4e0e3776c966a4 (patch) | |
tree | 8bb22a3173f8bc7e241ce9bcdcb232f5c5a4ce6a /src/backend/update.py | |
parent | 4a0e1e81a257000e372877360eac419ff2a3c834 (diff) |
backend : enable bdeps by default in solvedeps && install && ebuildinstall modules so we get everything in one go
Diffstat (limited to 'src/backend/update.py')
-rw-r--r-- | src/backend/update.py | 19 |
1 files changed, 11 insertions, 8 deletions
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)") |