summaryrefslogtreecommitdiff
path: root/src/backend/rescue.py
diff options
context:
space:
mode:
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()