summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Glazer <coyot@lindenlab.com>2017-03-21 13:58:22 -0700
committerGlenn Glazer <coyot@lindenlab.com>2017-03-21 13:58:22 -0700
commit5cb34738574f6dff15a51258dbf4fc43b57099ae (patch)
tree81ceb2bcce9fd88cf458302e2c39d91279e33d0b
parentf9a7960d181e2a800b79d08a523534b6ca044e7a (diff)
SL-321 MAINT-7192: add viewer bitness VMM fetch logic to VMP, including HD Graphcis test
-rwxr-xr-xindra/newview/viewer_manifest.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index af97bb4728..770567f13d 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -121,6 +121,24 @@ class ViewerManifest(LLManifest):
settings_install['CmdLineGridChoice']['Value'] = self.grid()
print "Set CmdLineGridChoice in settings_install.xml to '%s'" % self.grid()
+ #do not need to test for existence. If no platform is passed, llmanifest computes a default in get_default_platform
+ #the choice of value names (lnx, mac, win32, win) is dictated by the VMM API
+ summary_json_platform = ""
+ if 'linux' in self.args['platform']:
+ summary_json_platform = 'lnx'
+ elif 'darwin' in self.args['platform']:
+ summary_json_platform = 'mac'
+ elif 'windows' in self.args['platform']:
+ #default case
+ summary_json_platform = 'win'
+ if 'arch' in self.args and self.args['arch']:
+ if 'i686' in self.args['arch']:
+ summary_json_platform = 'win32'
+ #we really shouldn't be here, something is very wrong at this point
+ else:
+ summary_json_platform = 'None'
+
+
# put_in_file(src=) need not be an actual pathname; it
# only needs to be non-empty
self.put_in_file(llsd.format_pretty_xml(settings_install),
@@ -184,7 +202,10 @@ class ViewerManifest(LLManifest):
self.path("gpu_table.txt")
#summary.json. Standard with exception handling is fine. If we can't open a new file for writing, we have worse problems
- summary_dict = {"Type":"viewer","Version":'.'.join(self.args['version']),"Channel":self.channel_with_pkg_suffix()}
+ #platform is computed above with other arg parsing
+ summary_dict = {"Type":"viewer","Version":'.'.join(self.args['version']),
+ "Channel":self.channel_with_pkg_suffix(),
+ "Platform":summary_json_platform}
with open(os.path.join(os.pardir,'summary.json'), 'w') as summary_handle:
json.dump(summary_dict,summary_handle)