diff options
author | Don Kjer <don@lindenlab.com> | 2007-05-01 21:39:25 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2007-05-01 21:39:25 +0000 |
commit | 4ecb9cb63e4993b3b4bc65d73ed255139b5c3f75 (patch) | |
tree | 48d9bb9a1ae468ecdbd53cf21a598d66ee8eced3 /indra/mac_updater | |
parent | f5e9ce7e47694e349a4eb28b052016b11e1bdf81 (diff) |
svn merge -r 59163:61099 svn+ssh://svn/svn/linden/branches/release-candidate into release
Diffstat (limited to 'indra/mac_updater')
-rw-r--r-- | indra/mac_updater/mac_updater.cpp | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/indra/mac_updater/mac_updater.cpp b/indra/mac_updater/mac_updater.cpp index 52902ea819..4b56148f10 100644 --- a/indra/mac_updater/mac_updater.cpp +++ b/indra/mac_updater/mac_updater.cpp @@ -46,9 +46,8 @@ EventHandlerRef gEventHandler = NULL; OSStatus gFailure = noErr; Boolean gCancelled = false; -char *gUserServer; +char *gUpdateURL; char *gProductName; -char gUpdateURL[2048]; /* Flawfinder: ignore */ void *updatethreadproc(void*); @@ -305,20 +304,13 @@ int curl_progress_callback_func(void *clientp, int parse_args(int argc, char **argv) { - // Check for old-type arguments. - if (2 == argc) - { - gUserServer = argv[1]; - return 0; - } - int j; for (j = 1; j < argc; j++) { - if ((!strcmp(argv[j], "-userserver")) && (++j < argc)) + if ((!strcmp(argv[j], "-url")) && (++j < argc)) { - gUserServer = argv[j]; + gUpdateURL = argv[j]; } else if ((!strcmp(argv[j], "-name")) && (++j < argc)) { @@ -338,17 +330,17 @@ int main(int argc, char **argv) // // Process command line arguments // - gUserServer = NULL; + gUpdateURL = NULL; gProductName = NULL; parse_args(argc, argv); - if (!gUserServer) + if (!gUpdateURL) { - llinfos << "Usage: mac_updater -userserver <server> [-name <product_name>] [-program <program_name>]" << llendl; + llinfos << "Usage: mac_updater -url <url> [-name <product_name>] [-program <program_name>]" << llendl; exit(1); } else { - llinfos << "User server is: " << gUserServer << llendl; + llinfos << "Update url is: " << gUpdateURL << llendl; if (gProductName) { llinfos << "Product name is: " << gProductName << llendl; @@ -361,9 +353,6 @@ int main(int argc, char **argv) llinfos << "Starting " << gProductName << " Updater" << llendl; - // Build the URL to download the update - snprintf(gUpdateURL, sizeof(gUpdateURL), "http://secondlife.com/update-macos.php?userserver=%s", gUserServer); - // Real UI... OSStatus err; IBNibRef nib = NULL; |