diff options
Diffstat (limited to 'src/backend/recoverDatabase.py')
-rw-r--r-- | src/backend/recoverDatabase.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/backend/recoverDatabase.py b/src/backend/recoverDatabase.py deleted file mode 100644 index c429340..0000000 --- a/src/backend/recoverDatabase.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python3 - -import animation -import os -import sisyphus.getfs -import sisyphus.syncDatabase - -@animation.wait('recovering databases') -def cliExec(): - if os.path.exists(sisyphus.getfs.remotePackagesCsv): - os.remove(sisyphus.getfs.remotePackagesCsv) - if os.path.exists(sisyphus.getfs.remoteDescriptionsCsv): - os.remove(sisyphus.getfs.remoteDescriptionsCsv) - if os.path.exists(sisyphus.getfs.localPackagesCsv): - os.remove(sisyphus.getfs.localPackagesCsv) - if os.path.exists(sisyphus.getfs.localDatabase): - os.remove(sisyphus.getfs.localDatabase) - - sisyphus.syncDatabase.remoteTable() - sisyphus.syncDatabase.localTable() |