From e27422e243e5f646a1d10dd5140d4c1b24b97066 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Sat, 5 Apr 2008 21:07:21 +0000 Subject: [PATCH] Open and close a new DB right after creation in order to write the DB version number into it's metadata. svn: r10482 --- src/DbManager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DbManager.py b/src/DbManager.py index f3df321ba..90da530af 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -192,6 +192,11 @@ class CLIDbManager: name_file.write(title) name_file.close() + # open and close the db to write version number in metadata + newdb = gen.db.GrampsDBDir() + newdb.load(new_path, None) + newdb.close() + self.current_names.append((title, new_path, path_name, _("Never"), 0, False, "")) return new_path, title