From a786f2d1218d3db99ef7238f3e4979159349b4f2 Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 2 May 2008 14:49:48 +0000 Subject: [PATCH] Entropy/ServerInterface: - backup database before shrinking to avoid slow re-indexing git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1907 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 0e251a851..969cb5a12 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -14533,7 +14533,7 @@ class ServerMirrorsInterface: ) self.sync_database_treeupdates(repo) - self.close_server_databases() + self.Entropy.close_server_databases() # backup current database to avoid re-indexing old_dbpath = self.Entropy.get_local_database_file(repo) @@ -14594,7 +14594,7 @@ class ServerMirrorsInterface: # copy db back if copy_back and os.path.isfile(backup_dbpath): - self.close_server_databases() + self.Entropy.close_server_databases() further_backup_dbpath = old_dbpath+".security_backup" if os.path.isfile(further_backup_dbpath): os.remove(further_backup_dbpath)