Open and close a new DB right after creation in order to write the DB version
number into it's metadata. svn: r10482
This commit is contained in:
parent
3d9d5123a4
commit
e27422e243
@ -192,6 +192,11 @@ class CLIDbManager:
|
|||||||
name_file.write(title)
|
name_file.write(title)
|
||||||
name_file.close()
|
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,
|
self.current_names.append((title, new_path, path_name, _("Never"), 0,
|
||||||
False, ""))
|
False, ""))
|
||||||
return new_path, title
|
return new_path, title
|
||||||
|
Loading…
Reference in New Issue
Block a user