From a3b21752f172efcdf23d5ed02e65dc1a9dd7f8d9 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 30 Jun 2018 16:16:17 +0200 Subject: [PATCH] Replace fs_flavor method with more convenient method fs_is_opensim since we are checking for OpenSim only anyway --- indra/newview/fs_viewer_manifest.py | 6 +++--- indra/newview/viewer_manifest.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/indra/newview/fs_viewer_manifest.py b/indra/newview/fs_viewer_manifest.py index c4c6c0b148..2e73c2f9ad 100644 --- a/indra/newview/fs_viewer_manifest.py +++ b/indra/newview/fs_viewer_manifest.py @@ -3,9 +3,9 @@ import subprocess import tarfile class FSViewerManifest: - def fs_flavor( self ): - return self.args['viewer_flavor'] # [oss or hvk] - + def fs_is_opensim(self): + return self.args['viewer_flavor'] == 'oss' #Havok would be hvk + def fs_splice_grid_substitution_strings( self, subst_strings ): ret = subst_strings diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index 6bc3903438..de2999aa9a 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -290,7 +290,7 @@ class ViewerManifest(LLManifest,FSViewerManifest): # a standard map of strings for replacing in the templates # tag "OS" after CHANNEL_VENDOR_BASE and before any suffix channel_base = "Phoenix-" + CHANNEL_VENDOR_BASE - if self.fs_flavor() == 'oss': + if self.fs_is_opensim(): channel_base = channel_base + "OS" # substitution_strings = { @@ -310,7 +310,7 @@ class ViewerManifest(LLManifest,FSViewerManifest): app_suffix=self.channel_variant() # tag "OS" after CHANNEL_VENDOR_BASE and before any suffix - if self.fs_flavor() == 'oss': + if self.fs_is_opensim(): app_suffix = "OS" + app_suffix # @@ -324,7 +324,7 @@ class ViewerManifest(LLManifest,FSViewerManifest): def icon_path(self): # Add -os for oss builds - if self.fs_flavor() == 'oss': + if self.fs_is_opensim(): return "icons/" + self.channel_type() + "-os" # return "icons/" + self.channel_type() @@ -805,7 +805,7 @@ class WindowsManifest(ViewerManifest): self.path("msvcr120.dll") # FIRE-22709: Local voice not working in OpenSim - if self.fs_flavor() == 'oss': + if self.fs_is_opensim(): with self.prefix(src=os.path.join(relpkgdir, 'voice_os'), dst="voice_os"): self.path("libsndfile-1.dll") self.path("ortp.dll") @@ -1738,7 +1738,7 @@ class DarwinManifest(ViewerManifest): # - Ambroff 2008-08-20 # Select proper directory based on flavor and build type dmg_template_prefix = 'firestorm' - if self.fs_flavor() == 'oss': + if self.fs_is_opensim(): dmg_template_prefix = 'firestormos' dmg_template = os.path.join( 'installers', 'darwin', '%s-%s-dmg' % (dmg_template_prefix, self.channel_type()))