Make sure database version is set when recovering a database

svn: r10608
This commit is contained in:
Gary Burton 2008-04-20 20:59:29 +00:00
parent b1d1804006
commit 2c2abb6b7c

View File

@ -847,6 +847,9 @@ class DbManager(CLIDbManager):
fname = os.path.join(dirname, filename)
os.unlink(fname)
newdb = gen.db.GrampsDBDir()
newdb.write_version(dirname)
dbclass = gen.db.GrampsDBDir
dbase = dbclass()
dbase.set_save_path(dirname)