Make sure database version is set when recovering a database

svn: r10607
This commit is contained in:
Gary Burton 2008-04-20 20:58:26 +00:00
parent abec815ef6
commit 51fdd2bbb7

View File

@ -789,6 +789,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)