summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater/llupdateinstaller.cpp
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-11-11 09:40:30 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-11-11 09:40:30 -0800
commit6e15957d909787ba612004903f04335a593b5348 (patch)
tree0e1272efc57502ca05a35be31ceb8fdb0eed5b95 /indra/viewer_components/updater/llupdateinstaller.cpp
parent41517715844c986aab169502c94f39a9f507eb55 (diff)
run install script on successful download
Diffstat (limited to 'indra/viewer_components/updater/llupdateinstaller.cpp')
-rw-r--r--indra/viewer_components/updater/llupdateinstaller.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/viewer_components/updater/llupdateinstaller.cpp b/indra/viewer_components/updater/llupdateinstaller.cpp
index 52744b0479..10d5edc6a0 100644
--- a/indra/viewer_components/updater/llupdateinstaller.cpp
+++ b/indra/viewer_components/updater/llupdateinstaller.cpp
@@ -49,26 +49,29 @@ namespace {
int ll_install_update(std::string const & script, std::string const & updatePath, LLInstallScriptMode mode)
{
- std::string finalPath;
+ std::string actualScriptPath;
switch(mode) {
case LL_COPY_INSTALL_SCRIPT_TO_TEMP:
try {
- finalPath = copy_to_temp(updatePath);
+ actualScriptPath = copy_to_temp(script);
}
catch (RelocateError &) {
return -1;
}
break;
case LL_RUN_INSTALL_SCRIPT_IN_PLACE:
- finalPath = updatePath;
+ actualScriptPath = script;
break;
default:
llassert(!"unpossible copy mode");
}
+ llinfos << "UpdateInstaller: installing " << updatePath << " using " <<
+ actualScriptPath << LL_ENDL;
+
LLProcessLauncher launcher;
- launcher.setExecutable(script);
- launcher.addArgument(finalPath);
+ launcher.setExecutable(actualScriptPath);
+ launcher.addArgument(updatePath);
int result = launcher.launch();
launcher.orphan();