gnucash maint: Bug 752204 - .gml2 files are modified during build, take 2.

John Ralls jralls at code.gnucash.org
Sat Jul 11 12:58:13 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/211b923c (commit)
	from  https://github.com/Gnucash/gnucash/commit/a25fa861 (commit)



commit 211b923cd7bdadba3accaaf0ec7bd3d7c4619f63
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Jul 11 09:55:06 2015 -0700

    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.

diff --git a/src/backend/xml/test/test-load-xml2.c b/src/backend/xml/test/test-load-xml2.c
index da77e17..34592ca 100644
--- a/src/backend/xml/test/test-load-xml2.c
+++ b/src/backend/xml/test/test-load-xml2.c
@@ -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);
 }
 



Summary of changes:
 src/backend/xml/test/test-load-xml2.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list