diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-12 12:23:30 -0800 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-12 12:23:30 -0800 |
commit | 1368a94f014884588b343802eef5fd2c7888390a (patch) | |
tree | 475fd8c13faaa50ded4034f169b7a43208c7d57b /indra/viewer_components/updater/llupdatedownloader.cpp | |
parent | 0f26013d1de5836b0be97d34af677f2a021f78fe (diff) |
do not resume or install if current viewer version doesn't match the recorded version which started the process.
Diffstat (limited to 'indra/viewer_components/updater/llupdatedownloader.cpp')
-rw-r--r-- | indra/viewer_components/updater/llupdatedownloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp index 21555dc3ff..ab441aa747 100644 --- a/indra/viewer_components/updater/llupdatedownloader.cpp +++ b/indra/viewer_components/updater/llupdatedownloader.cpp @@ -35,6 +35,7 @@ #include "llsdserialize.h" #include "llthread.h" #include "llupdatedownloader.h" +#include "llupdaterservice.h" class LLUpdateDownloader::Implementation: @@ -360,6 +361,7 @@ void LLUpdateDownloader::Implementation::startDownloading(LLURI const & uri, std { mDownloadData["url"] = uri.asString(); mDownloadData["hash"] = hash; + mDownloadData["current_version"] = ll_get_version(); LLSD path = uri.pathArray(); if(path.size() == 0) throw DownloadError("no file path"); std::string fileName = path[path.size() - 1].asString(); |