summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater/llupdatechecker.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-02-27 17:40:39 -0500
committerOz Linden <oz@lindenlab.com>2013-02-27 17:40:39 -0500
commit49ed1a4e32013cda716998784338a01b12c663ef (patch)
tree9c1f83682d8651160d6a52e26cc267b0d557d794 /indra/viewer_components/updater/llupdatechecker.cpp
parent13fe905b24546dda39a88466517aa0c6b449fbd8 (diff)
finish changes to update handling, including notices of channel changes
Diffstat (limited to 'indra/viewer_components/updater/llupdatechecker.cpp')
-rw-r--r--indra/viewer_components/updater/llupdatechecker.cpp23
1 files changed, 6 insertions, 17 deletions
diff --git a/indra/viewer_components/updater/llupdatechecker.cpp b/indra/viewer_components/updater/llupdatechecker.cpp
index 6d0758b226..734747c811 100644
--- a/indra/viewer_components/updater/llupdatechecker.cpp
+++ b/indra/viewer_components/updater/llupdatechecker.cpp
@@ -143,8 +143,8 @@ void LLUpdateChecker::Implementation::completed(U32 status,
LL_WARNS("UpdaterService")
<< "update response using " << sProtocolVersion
- << " was 404... retry at " << retryUrl
- << " with legacy protocol"
+ << " was 404... retry with legacy protocol" << mProtocol
+ << "\n at " << retryUrl
<< LL_ENDL;
mHttpClient.get(retryUrl, this);
@@ -164,22 +164,9 @@ void LLUpdateChecker::Implementation::completed(U32 status,
mClient.error(reason);
}
}
- else if(!content.asBoolean())
- {
- LL_INFOS("UpdaterService") << "up to date" << LL_ENDL;
- mClient.upToDate();
- }
- else if(content["required"].asBoolean())
- {
- LL_INFOS("UpdaterService") << "version invalid" << LL_ENDL;
- LLURI uri(content["url"].asString());
- mClient.requiredUpdate(content["version"].asString(), uri, content["hash"].asString());
- }
else
{
- LL_INFOS("UpdaterService") << "newer version " << content["version"].asString() << " available" << LL_ENDL;
- LLURI uri(content["url"].asString());
- mClient.optionalUpdate(content["version"].asString(), uri, content["hash"].asString());
+ mClient.response(content);
}
}
@@ -215,8 +202,10 @@ std::string LLUpdateChecker::Implementation::buildUrl(std::string const & hostUr
{
platform = "mac";
}
-#else
+#elif LL_LINUX
static const char * platform = "lnx";
+#else
+# error "unsupported platform"
#endif
LLSD path;