gnucash maint: Get metadata migration working again when upgrading from 2.6 to 3.1

Geert Janssens gjanssens at code.gnucash.org
Mon Apr 30 15:00:09 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/0c6b9295 (commit)
	from  https://github.com/Gnucash/gnucash/commit/02266d72 (commit)



commit 0c6b92959a9e1ef1e9a8d00cea3992f483b1c787
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Apr 30 20:59:25 2018 +0200

    Get metadata migration working again when upgrading from 2.6 to 3.1
    
    Due to a typo the old GNC_DOT_DIR path was wrong
    ($HOME.gnucash instead of $HOME/.gnucash)

diff --git a/libgnucash/core-utils/gnc-filepath-utils.cpp b/libgnucash/core-utils/gnc-filepath-utils.cpp
index 4d00bab..67e930d 100644
--- a/libgnucash/core-utils/gnc-filepath-utils.cpp
+++ b/libgnucash/core-utils/gnc-filepath-utils.cpp
@@ -585,7 +585,7 @@ static std::string migrate_gnc_datahome()
     auto success = false;
     // Specify location of dictionaries
     bfs::path old_dir(g_get_home_dir(), cvt);
-    old_dir += ".gnucash";
+    old_dir /= ".gnucash";
 
     bl::generator gen;
     gen.add_messages_path(gnc_path_get_datadir());



Summary of changes:
 libgnucash/core-utils/gnc-filepath-utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list