Skip to content
Snippets Groups Projects
Commit 1d950fad authored by Aura Linden's avatar Aura Linden
Browse files

For mac, viewers on 10.5 will pull mac_legacy rather than mac

parent 78854c9b
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#include "llsd.h" #include "llsd.h"
#include "llupdatechecker.h" #include "llupdatechecker.h"
#include "lluri.h" #include "lluri.h"
#if LL_DARWIN
#include <CoreServices/CoreServices.h>
#endif
#if LL_WINDOWS #if LL_WINDOWS
#pragma warning (disable : 4355) // 'this' used in initializer list: yes, intentionally #pragma warning (disable : 4355) // 'this' used in initializer list: yes, intentionally
...@@ -55,7 +57,7 @@ class LLUpdateChecker::Implementation: ...@@ -55,7 +57,7 @@ class LLUpdateChecker::Implementation:
public: public:
Implementation(Client & client); Implementation(Client & client);
~Implementation(); ~Implementation();
void check(std::string const & protocolVersion, std::string const & hostUrl, void checkVersion(std::string const & protocolVersion, std::string const & hostUrl,
std::string const & servicePath, std::string channel, std::string version); std::string const & servicePath, std::string channel, std::string version);
// Responder: // Responder:
...@@ -91,10 +93,10 @@ LLUpdateChecker::LLUpdateChecker(LLUpdateChecker::Client & client): ...@@ -91,10 +93,10 @@ LLUpdateChecker::LLUpdateChecker(LLUpdateChecker::Client & client):
} }
void LLUpdateChecker::check(std::string const & protocolVersion, std::string const & hostUrl, void LLUpdateChecker::checkVersion(std::string const & protocolVersion, std::string const & hostUrl,
std::string const & servicePath, std::string channel, std::string version) std::string const & servicePath, std::string channel, std::string version)
{ {
mImplementation->check(protocolVersion, hostUrl, servicePath, channel, version); mImplementation->checkVersion(protocolVersion, hostUrl, servicePath, channel, version);
} }
...@@ -120,7 +122,7 @@ LLUpdateChecker::Implementation::~Implementation() ...@@ -120,7 +122,7 @@ LLUpdateChecker::Implementation::~Implementation()
} }
void LLUpdateChecker::Implementation::check(std::string const & protocolVersion, std::string const & hostUrl, void LLUpdateChecker::Implementation::checkVersion(std::string const & protocolVersion, std::string const & hostUrl,
std::string const & servicePath, std::string channel, std::string version) std::string const & servicePath, std::string channel, std::string version)
{ {
llassert(!mInProgress); llassert(!mInProgress);
...@@ -179,7 +181,18 @@ std::string LLUpdateChecker::Implementation::buildUrl(std::string const & protoc ...@@ -179,7 +181,18 @@ std::string LLUpdateChecker::Implementation::buildUrl(std::string const & protoc
#ifdef LL_WINDOWS #ifdef LL_WINDOWS
static const char * platform = "win"; static const char * platform = "win";
#elif LL_DARWIN #elif LL_DARWIN
static const char * platform = "mac"; long versMin;
Gestalt(gestaltSystemVersionMinor, &versMin);
static const char *platform;
if (versMin == 5) //OS 10.5
{
platform = "mac_legacy";
}
else
{
platform = "mac";
}
#else #else
static const char * platform = "lnx"; static const char * platform = "lnx";
#endif #endif
......
...@@ -44,7 +44,7 @@ class LLUpdateChecker { ...@@ -44,7 +44,7 @@ class LLUpdateChecker {
LLUpdateChecker(Client & client); LLUpdateChecker(Client & client);
// Check status of current app on the given host for the channel and version provided. // Check status of current app on the given host for the channel and version provided.
void check(std::string const & protocolVersion, std::string const & hostUrl, void checkVersion(std::string const & protocolVersion, std::string const & hostUrl,
std::string const & servicePath, std::string channel, std::string version); std::string const & servicePath, std::string channel, std::string version);
private: private:
......
...@@ -509,7 +509,7 @@ bool LLUpdaterServiceImpl::onMainLoop(LLSD const & event) ...@@ -509,7 +509,7 @@ bool LLUpdaterServiceImpl::onMainLoop(LLSD const & event)
} }
else else
{ {
mUpdateChecker.check(mProtocolVersion, mUrl, mPath, mChannel, mVersion); mUpdateChecker.checkVersion(mProtocolVersion, mUrl, mPath, mChannel, mVersion);
setState(LLUpdaterService::CHECKING_FOR_UPDATE); setState(LLUpdaterService::CHECKING_FOR_UPDATE);
} }
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
*****************************************************************************/ *****************************************************************************/
LLUpdateChecker::LLUpdateChecker(LLUpdateChecker::Client & client) LLUpdateChecker::LLUpdateChecker(LLUpdateChecker::Client & client)
{} {}
void LLUpdateChecker::check(std::string const & protocolVersion, std::string const & hostUrl, void LLUpdateChecker::checkVersion(std::string const & protocolVersion, std::string const & hostUrl,
std::string const & servicePath, std::string channel, std::string version) std::string const & servicePath, std::string channel, std::string version)
{} {}
LLUpdateDownloader::LLUpdateDownloader(Client & ) {} LLUpdateDownloader::LLUpdateDownloader(Client & ) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment