summaryrefslogtreecommitdiff
path: root/src/backend/updateAll.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 15:23:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 15:23:53 +0000
commit103aa455aee322549c77aad205ce9e92dd7e6b52 (patch)
treef148de8f1e51edc19c875f60bec9ac1e3232a5eb /src/backend/updateAll.py
parent5fc5276d968a38d05fa5659c06392e83cc428516 (diff)
move updateAll -> update
Diffstat (limited to 'src/backend/updateAll.py')
-rw-r--r--src/backend/updateAll.py55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/backend/updateAll.py b/src/backend/updateAll.py
deleted file mode 100644
index 5a6a6cd..0000000
--- a/src/backend/updateAll.py
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/python3
-
-import animation
-import sys
-import time
-import sisyphus.checkenv
-import sisyphus.getenv
-import sisyphus.purgeenv
-import sisyphus.syncdb
-import sisyphus.syncenv
-
-def syncAll():
- sisyphus.purgeenv.cache()
- sisyphus.syncenv.gentooRepo()
- sisyphus.syncenv.redcoreRepo()
- sisyphus.syncenv.portageConfigRepo()
- sisyphus.syncdb.remoteTable()
-
-@animation.wait('fetching updates')
-def cliExec():
- activeBranch = sisyphus.checkenv.branch()
- binhostURL = sisyphus.getenv.binhostURL()
- isSane = sisyphus.checkenv.sanity()
-
- if isSane == 1:
- syncAll()
- else:
- if "packages-next" in binhostURL:
- print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
- else:
- print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
- sys.exit("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting.")
-
-def guiExec():
- activeBranch = sisyphus.checkenv.branch()
- binhostURL = sisyphus.getenv.binhostURL()
- isSane = sisyphus.checkenv.sanity()
-
- if isSane == 1:
- syncAll()
- else:
- if "packages-next" in binhostURL:
- print("\nCurrent branch: '" + activeBranch + "' (stable)" + "\nCurrent binhost: '" + binhostURL + "' (testing)")
- else:
- print("\nCurrent branch: '" + activeBranch + "' (testing)" + "\nCurrent binhost: '" + binhostURL + "' (stable)")
- print("\nInvalid branch - binhost pairing; Use 'sisyphus branch --help' for help; Quitting in 10 seconds.\n")
- t = int(10)
- while t:
- mins, secs = divmod(t, 60)
- timer = '{:02d}:{:02d}'.format(mins, secs)
- print(timer, end="\r")
- time.sleep(1)
- t -= 1
-
- sys.exit()