summaryrefslogtreecommitdiff
path: root/src/backend/update.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-31 01:20:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-31 01:20:32 +0000
commite5d40ebec925b9e0f308fa55930f7fd03f02a693 (patch)
treeb3ff6dcffc9c956419466bf37b66296bd18ba438 /src/backend/update.py
parente4f2e722b2740d16ddc2ffa9b184287a7850b203 (diff)
Revert "backend : reuse binhost module in csvfiles module, one less portage call"
This reverts commit e4f2e722b2740d16ddc2ffa9b184287a7850b203.
Diffstat (limited to 'src/backend/update.py')
-rw-r--r--src/backend/update.py54
1 files changed, 24 insertions, 30 deletions
diff --git a/src/backend/update.py b/src/backend/update.py
index b99da1c..902c398 100644
--- a/src/backend/update.py
+++ b/src/backend/update.py
@@ -1,7 +1,6 @@
#!/usr/bin/python3
import animation
-import sys
import sisyphus.cache
import sisyphus.check
import sisyphus.database
@@ -12,33 +11,28 @@ import sisyphus.sync
def start():
sisyphus.cache.clean()
- mismatch = sisyphus.check.branch()
+ needsPortage = sisyphus.check.portage()
+ needsOverlay = sisyphus.check.overlay()
- if mismatch == 0:
- needsPortage = sisyphus.check.portage()
- needsOverlay = sisyphus.check.overlay()
-
- if needsPortage == 1:
- if needsOverlay == 1:
- sisyphus.sync.portage()
- sisyphus.sync.overlay()
- sisyphus.sync.portageCfg()
- sisyphus.database.syncRemote()
- sisyphus.metadata.regenSilent()
- elif not needsOverlay == 1:
- sisyphus.sync.portage()
- sisyphus.sync.overlay()
- sisyphus.sync.portageCfg()
- sisyphus.database.syncRemote()
- sisyphus.metadata.regenSilent()
- elif not needsPortage == 1:
- if needsOverlay == 1:
- sisyphus.sync.portage()
- sisyphus.sync.overlay()
- sisyphus.sync.portageCfg()
- sisyphus.database.syncRemote()
- sisyphus.metadata.regenSilent()
- elif not needsOverlay == 1:
- sisyphus.sync.portageCfg()
- else:
- sys.exit("\n" + "")
+ if needsPortage == 1:
+ if needsOverlay == 1:
+ sisyphus.sync.portage()
+ sisyphus.sync.overlay()
+ sisyphus.sync.portageCfg()
+ sisyphus.database.syncRemote()
+ sisyphus.metadata.regenSilent()
+ elif not needsOverlay == 1:
+ sisyphus.sync.portage()
+ sisyphus.sync.overlay()
+ sisyphus.sync.portageCfg()
+ sisyphus.database.syncRemote()
+ sisyphus.metadata.regenSilent()
+ elif not needsPortage == 1:
+ if needsOverlay == 1:
+ sisyphus.sync.portage()
+ sisyphus.sync.overlay()
+ sisyphus.sync.portageCfg()
+ sisyphus.database.syncRemote()
+ sisyphus.metadata.regenSilent()
+ elif not needsOverlay == 1:
+ sisyphus.sync.portageCfg()