Kaydet (Commit) 4943ee04 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't hardcode the version string in crash report url

Change-Id: I9814e5975d69d4b93dd2a2b142e9368dc665c225
Reviewed-on: https://gerrit.libreoffice.org/22554Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 98a8eafa
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <sal/config.h> #include <sal/config.h>
#include <config_features.h> #include <config_features.h>
#include <config_version.h>
#include <config_folders.h> #include <config_folders.h>
#include <desktop/dllapi.h> #include <desktop/dllapi.h>
...@@ -75,7 +76,7 @@ static bool dumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, ...@@ -75,7 +76,7 @@ static bool dumpCallback(const google_breakpad::MinidumpDescriptor& descriptor,
{ {
// send the minidump to the server (not yet implemented) // send the minidump to the server (not yet implemented)
SAL_WARN("destkop.crashreport", "minidump generated: " << descriptor.path()); SAL_WARN("destkop.crashreport", "minidump generated: " << descriptor.path());
OString aCommand = getLibDir().copy(7) + "/minidump_upload -p LibreOffice -v \"5.1.0.0\" "; OString aCommand = getLibDir().copy(7) + "/minidump_upload -p LibreOffice -v \"" + LIBO_VERSION_DOTTED + "\" ";
aCommand = aCommand + descriptor.path() + " http://libreofficecrash.org/submit"; aCommand = aCommand + descriptor.path() + " http://libreofficecrash.org/submit";
int retVal = std::system(aCommand.getStr()); int retVal = std::system(aCommand.getStr());
SAL_WARN_IF(retVal != 0, "destkop.crashreport", "Failed to upload minidump. Error Code: " << retVal); SAL_WARN_IF(retVal != 0, "destkop.crashreport", "Failed to upload minidump. Error Code: " << retVal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment