From f587c2de87665b10e70b4143989572b19e43c08c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 8 Jun 2020 16:10:24 +0100 Subject: rename some constants to something more pretty --- src/backend/rescue.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend/rescue.py') diff --git a/src/backend/rescue.py b/src/backend/rescue.py index 96d347f..26e7c68 100644 --- a/src/backend/rescue.py +++ b/src/backend/rescue.py @@ -7,14 +7,14 @@ import sisyphus.filesystem @animation.wait('recovering databases') def start(): - if os.path.exists(sisyphus.filesystem.remotePkgsDB): - os.remove(sisyphus.filesystem.remotePkgsDB) - if os.path.exists(sisyphus.filesystem.remoteDscsDB): - os.remove(sisyphus.filesystem.remoteDscsDB) - if os.path.exists(sisyphus.filesystem.localPkgsDB): - os.remove(sisyphus.filesystem.localPkgsDB) - if os.path.exists(sisyphus.filesystem.sisyphusDB): - os.remove(sisyphus.filesystem.sisyphusDB) + 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