Fix sqlite upgrade code to use correct API call
We were using self.getfolderbasename(self.name) but the API is simply getfolderbasename(). Fix this glitch. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
8cce178fb8
commit
f0869e5c0f
@ -111,7 +111,8 @@ class LocalStatusSQLiteFolder(LocalStatusFolder):
|
||||
|
||||
if hasattr(self, 'connection'):
|
||||
self.connection.close() #close old connections first
|
||||
self.connection = sqlite.connect(self.filename, check_same_thread = False)
|
||||
self.connection = sqlite.connect(self.filename,
|
||||
check_same_thread = False)
|
||||
|
||||
if from_ver == 0:
|
||||
# from_ver==0: no db existent: plain text migration?
|
||||
@ -120,7 +121,7 @@ class LocalStatusSQLiteFolder(LocalStatusFolder):
|
||||
plaintextfilename = os.path.join(
|
||||
self.repository.account.getaccountmeta(),
|
||||
'LocalStatus',
|
||||
self.getfolderbasename(self.name))
|
||||
self.getfolderbasename())
|
||||
# MIGRATE from plaintext if needed
|
||||
if os.path.exists(plaintextfilename):
|
||||
self.ui._msg('Migrating LocalStatus cache from plain text '
|
||||
|
Loading…
Reference in New Issue
Block a user