mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug 752204 - .gml2 files are modified during build, take 2.
Turns out that there are changes as well as compression, particularly if the timezone is different from the one from the last commit of the gml2 files. Since there's no real benefit to saving the files most of the time, don't, but leave the save line in, commented out, to make it easy to write new files if necessary.
This commit is contained in:
parent
a25fa861eb
commit
211b923cd7
@ -92,7 +92,7 @@ test_load_file(const char *filename)
|
||||
remove_locks(filename);
|
||||
|
||||
ignore_lock = (g_strcmp0(g_getenv("SRCDIR"), ".") != 0);
|
||||
gnc_prefs_set_file_save_compressed(FALSE);
|
||||
/* gnc_prefs_set_file_save_compressed(FALSE); */
|
||||
qof_session_begin(session, filename, ignore_lock, FALSE, TRUE);
|
||||
|
||||
qof_session_load(session, NULL);
|
||||
@ -107,8 +107,7 @@ test_load_file(const char *filename)
|
||||
"qof error=%d for file [%s]",
|
||||
qof_session_get_error(session), filename);
|
||||
/* Uncomment the line below to generate corrected files */
|
||||
gnc_prefs_set_file_save_compressed(FALSE);
|
||||
qof_session_save( session, NULL );
|
||||
/* qof_session_save( session, NULL ); */
|
||||
qof_session_end(session);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user