gnucash stable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Tue May 20 19:32:08 EDT 2025
Updated via https://github.com/Gnucash/gnucash/commit/61fe756a (commit)
via https://github.com/Gnucash/gnucash/commit/86204236 (commit)
from https://github.com/Gnucash/gnucash/commit/019fbb3f (commit)
commit 61fe756acdd2a7daec857d1f4c0dbbe8c0d50bd7
Author: John Ralls <jralls at ceridwen.us>
Date: Sun May 18 16:19:50 2025 -0700
Bug 799572 - Return proper status code when Finance::Quote errors...
during price quote retrieval via CLI.
diff --git a/gnucash/gnucash-cli.cpp b/gnucash/gnucash-cli.cpp
index 23a8475fc9..157e23ac03 100644
--- a/gnucash/gnucash-cli.cpp
+++ b/gnucash/gnucash-cli.cpp
@@ -232,7 +232,5 @@ main(int argc, char **argv)
boost::nowide::args a(argc, argv); // Fix arguments - make them UTF-8
#endif
application.parse_command_line (argc, argv);
- application.start (argc, argv);
-
- return 0;
+ return application.start (argc, argv);
}
diff --git a/gnucash/gnucash-commands.cpp b/gnucash/gnucash-commands.cpp
index db4dbda55b..c827265307 100644
--- a/gnucash/gnucash-commands.cpp
+++ b/gnucash/gnucash-commands.cpp
@@ -342,6 +342,7 @@ Gnucash::check_finance_quote (void)
int
Gnucash::add_quotes (const bo_str& uri)
{
+ int rv{};
gnc_prefs_init ();
qof_event_suspend();
@@ -365,7 +366,10 @@ Gnucash::add_quotes (const bo_str& uri)
gnc_quote_source_set_fq_installed (quotes.version().c_str(), quote_sources);
quotes.fetch(qof_session_get_book(session));
if (quotes.had_failures())
+ {
std::cerr << quotes.report_failures() << std::endl;
+ rv = 2;
+ }
}
catch (const GncQuoteException& err)
{
@@ -377,7 +381,7 @@ Gnucash::add_quotes (const bo_str& uri)
qof_session_destroy(session);
qof_event_resume();
- return 0;
+ return rv;
}
int
commit 86204236532e51d75a49ce51f788c52fcf9324ec
Author: John Ralls <jralls at ceridwen.us>
Date: Sun May 18 15:34:34 2025 -0700
Bug 799593 - macOS: mariadb hardcodes plugin paths to original install directory.
Override it with environment variable MARIADB_PLUGIN_DIR.
diff --git a/gnucash/CMakeLists.txt b/gnucash/CMakeLists.txt
index 28e7d7d472..731ad4adf0 100644
--- a/gnucash/CMakeLists.txt
+++ b/gnucash/CMakeLists.txt
@@ -246,6 +246,7 @@ if (MAC_INTEGRATION)
file(APPEND ${ENV_FILE_OUT} "OFX_DTD_PATH={GNC_HOME}/share/libofx/dtd\n")
file(APPEND ${ENV_FILE_OUT} "GNC_DBD_DIR={SYS_LIB}/dbd\n")
file(APPEND ${ENV_FILE_OUT} "GTK_IM_MODULE_FILE={GNC_HOME}/lib/gtk-3.0/3.0.0/immodules.cache\n")
+ file(APPEND ${ENV_FILE_OUT} "MARIADB_PLUGIN_DIR={SYS_LIB}/mariadb/plugin\n")
endif()
file(COPY ${BUILD_ENV_FILE_OUT}
Summary of changes:
gnucash/CMakeLists.txt | 1 +
gnucash/gnucash-cli.cpp | 4 +---
gnucash/gnucash-commands.cpp | 6 +++++-
3 files changed, 7 insertions(+), 4 deletions(-)
More information about the gnucash-changes
mailing list