summaryrefslogtreecommitdiff
path: root/indra/linux_updater
diff options
context:
space:
mode:
authorMark Palange (Mani) <palange@lindenlab.com>2010-11-17 15:20:53 -0800
committerMark Palange (Mani) <palange@lindenlab.com>2010-11-17 15:20:53 -0800
commit8e0e5e0bd9fd3e699a36b6babfacab3c0f61935b (patch)
tree6af2f3ef7903fde67ef5fde3754ccc3daaadf14f /indra/linux_updater
parentc61d89f61d0b696e6e73105ed7be7580bf1b3437 (diff)
CHOP-203 Deleting the update file after installer run.
Diffstat (limited to 'indra/linux_updater')
-rw-r--r--indra/linux_updater/linux_updater.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indra/linux_updater/linux_updater.cpp b/indra/linux_updater/linux_updater.cpp
index a7f886b389..cbdb3ddfe0 100644
--- a/indra/linux_updater/linux_updater.cpp
+++ b/indra/linux_updater/linux_updater.cpp
@@ -403,15 +403,6 @@ gpointer worker_thread_cb(gpointer data)
app_state->failure = TRUE;
}
- // FIXME: delete package file also if delete-event is raised on window
- if(!app_state->url.empty() && !app_state->file.empty())
- {
- if (gDirUtilp->fileExists(app_state->file))
- {
- LLFile::remove(app_state->file);
- }
- }
-
gdk_threads_enter();
updater_app_quit(app_state);
gdk_threads_leave();
@@ -824,6 +815,15 @@ int main(int argc, char **argv)
gtk_main();
gdk_threads_leave();
+ // Delete the file only if created from url download.
+ if(!app_state->url.empty() && !app_state->file.empty())
+ {
+ if (gDirUtilp->fileExists(app_state->file))
+ {
+ LLFile::remove(app_state->file);
+ }
+ }
+
bool success = app_state->failure != FALSE;
delete app_state;
return success ? 0 : 1;