diff options
author | Josh Bell <josh@lindenlab.com> | 2008-03-13 20:00:55 +0000 |
---|---|---|
committer | Josh Bell <josh@lindenlab.com> | 2008-03-13 20:00:55 +0000 |
commit | d60c966bcf981416790a286fbab0598192914910 (patch) | |
tree | 7a2c8f6e5df9d57276f0b8d64ded68f0ae58eddc /indra/newview | |
parent | d2e5b7ca858b3da99bb6380b3da315c5191935d0 (diff) |
svn merge -r81066:82130 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-19-0-Viewer
Pick up last minute changes to 1.19.0:
* Access/Ban UI string "translation" fixes from 1.19.0.5
* Support for setting more scoped channel during builds/packaging, for A/B testing
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/viewer_manifest.py | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index 40acde28a1..a030a64401 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -93,8 +93,16 @@ class ViewerManifest(LLManifest): self.path("lsl_guide.html") self.path("gpu_table.txt") + def login_channel(self): + """Channel reported for login and upgrade purposes ONLY; used for A/B testing""" + # NOTE: Do not return the normal channel if login_channel is not specified, as + # some code may branch depending on whether or not this is present + return self.args['login_channel'] + + def channel(self): + return self.args['channel'] def channel_unique(self): - return self.args['channel'].replace("Second Life", "").strip() + return self.channel().replace("Second Life", "").strip() def channel_oneword(self): return "".join(self.channel_unique().split()) def channel_lowerword(self): @@ -112,7 +120,11 @@ class ViewerManifest(LLManifest): if not self.default_channel(): # some channel on some grid - channel_flags = '-settings settings_%s.xml -channel "%s"' % (self.channel_lowerword(), self.args['channel']) + channel_flags = '-settings settings_%s.xml -channel "%s"' % (self.channel_lowerword(), self.channel()) + elif self.login_channel(): + # Report a special channel during login, but use default channel elsewhere + channel_flags = '-channel "%s"' % (self.login_channel()) + return " ".join((channel_flags, grid_flags)).strip() def login_url(self): @@ -144,7 +156,7 @@ class WindowsManifest(ViewerManifest): else: return "SecondLifePreview.exe" else: - return ''.join(self.args['channel'].split()) + '.exe' + return ''.join(self.channel().split()) + '.exe' def construct(self): @@ -273,7 +285,7 @@ class WindowsManifest(ViewerManifest): 'grid_caps':self.args['grid'].upper(), # escape quotes becase NSIS doesn't handle them well 'flags':self.flags_list().replace('"', '$\\"'), - 'channel':self.args['channel'], + 'channel':self.channel(), 'channel_oneword':self.channel_oneword(), 'channel_unique':self.channel_unique(), } @@ -395,7 +407,7 @@ class DarwinManifest(ViewerManifest): def package_finish(self): channel_standin = 'Second Life' # hah, our default channel is not usable on its own if not self.default_channel(): - channel_standin = self.args['channel'] + channel_standin = self.channel() imagename="SecondLife_" + '_'.join(self.args['version']) if self.default_channel(): |