diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-15 09:38:20 -0800 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-15 09:38:20 -0800 |
commit | ec7d36f6cfbed53a30d918415dfa3e429a645ce1 (patch) | |
tree | 3c4c30b2bb8af702c6e0d32d433d67f980637802 /indra/viewer_components/updater/llupdateinstaller.cpp | |
parent | 1368a94f014884588b343802eef5fd2c7888390a (diff) |
added mechanism for install scripts to indicate a failed install and for update service to note the failure; modified mac installer to write marker on error.
Diffstat (limited to 'indra/viewer_components/updater/llupdateinstaller.cpp')
-rw-r--r-- | indra/viewer_components/updater/llupdateinstaller.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/viewer_components/updater/llupdateinstaller.cpp b/indra/viewer_components/updater/llupdateinstaller.cpp index 10d5edc6a0..6e69bcf28b 100644 --- a/indra/viewer_components/updater/llupdateinstaller.cpp +++ b/indra/viewer_components/updater/llupdateinstaller.cpp @@ -72,8 +72,19 @@ int ll_install_update(std::string const & script, std::string const & updatePath LLProcessLauncher launcher; launcher.setExecutable(actualScriptPath); launcher.addArgument(updatePath); + launcher.addArgument(ll_install_failed_marker_path().c_str()); int result = launcher.launch(); launcher.orphan(); return result; } + + +std::string const & ll_install_failed_marker_path(void) +{ + static std::string path; + if(path.empty()) { + path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "SecondLifeInstallFailed.marker"); + } + return path; +} |