From e1562a71d6483021d332bccbfc5a3086688bc58c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Sep 2022 19:12:53 +0100 Subject: rearrange the backend --- src/backend/rescue.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/backend/rescue.py (limited to 'src/backend/rescue.py') 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() -- cgit v1.2.3