summaryrefslogtreecommitdiff
path: root/src/backend/rescue.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-17 19:12:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-17 19:12:53 +0100
commite1562a71d6483021d332bccbfc5a3086688bc58c (patch)
tree6be3d468e0aadd6c4de6c4dbd7a58ebe9fd59cbb /src/backend/rescue.py
parent0cf2c9f8ec52b1ae276c1573210d252ab0c4577b (diff)
rearrange the backend
Diffstat (limited to 'src/backend/rescue.py')
-rw-r--r--src/backend/rescue.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/backend/rescue.py b/src/backend/rescue.py
deleted file mode 100644
index 26e7c68..0000000
--- a/src/backend/rescue.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/python3
-
-import animation
-import os
-import sisyphus.database
-import sisyphus.filesystem
-
-@animation.wait('recovering databases')
-def start():
- if os.path.exists(sisyphus.filesystem.remotePackagesCsv):
- os.remove(sisyphus.filesystem.remotePackagesCsv)
- if os.path.exists(sisyphus.filesystem.remoteDescriptionsCsv):
- os.remove(sisyphus.filesystem.remoteDescriptionsCsv)
- if os.path.exists(sisyphus.filesystem.localPackagesCsv):
- os.remove(sisyphus.filesystem.localPackagesCsv)
- if os.path.exists(sisyphus.filesystem.localDatabase):
- os.remove(sisyphus.filesystem.localDatabase)
-
- sisyphus.database.syncRemote()
- sisyphus.database.syncLocal()