diff options
author | Oz Linden <oz@lindenlab.com> | 2011-08-04 11:52:32 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-08-04 11:52:32 -0400 |
commit | 5aa1521625f39825f31163a5ab0a64a73d96de95 (patch) | |
tree | 09e8264e57542140f3d8da8174d3aae1e3d5084c /indra/newview/viewer_manifest.py | |
parent | 2fcf7bc6d7e27f1ae4731d0ca5cdb667f577f957 (diff) |
fix path choice for project branches, attempt to fix linux icon
Diffstat (limited to 'indra/newview/viewer_manifest.py')
-rw-r--r-- | indra/newview/viewer_manifest.py | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index bdb18f5da5..281db4ac83 100644 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -148,10 +148,11 @@ class ViewerManifest(LLManifest): channel_type=self.channel_lowerword() if channel_type == 'release' \ or channel_type == 'beta' \ - or channel_type == 'project' \ or channel_type == 'development' \ : icon_path += channel_type + elif re.match('project.*',channel_type) : + icon_path += 'project' else : icon_path += 'test' return icon_path @@ -624,11 +625,7 @@ class DarwinManifest(ViewerManifest): icon_path = self.icon_path() if self.prefix(src=icon_path, dst="") : - test_path = os.path.join(self.get_src_prefix(), "secondlife.icns") - if os.path.exists(test_path) : - self.path("secondlife.icns") - else : - raise Exception("Icon not found '%s'" % test_path) + self.path("secondlife.icns") self.end_prefix(icon_path) self.path("SecondLife.nib") @@ -867,14 +864,6 @@ class LinuxManifest(ViewerManifest): def construct(self): super(LinuxManifest, self).construct() self.path("licenses-linux.txt","licenses.txt") - icon_path = self.icon_path() - if self.prefix(src=icon_path, dst="") : - test_path = os.path.join(self.get_src_prefix(), "secondlife_256.png") - if os.path.exists(test_path) : - self.path("secondlife_256.png","secondlife_icon.png") - else : - raise Exception("Icon not found '%s'" % test_path) - self.end_prefix(icon_path) if self.prefix("linux_tools", dst=""): self.path("client-readme.txt","README-linux.txt") self.path("client-readme-voice.txt","README-linux-voice.txt") @@ -900,6 +889,15 @@ class LinuxManifest(ViewerManifest): # recurse self.end_prefix("res-sdl") + # Get the icons based on the channel + icon_path = self.icon_path() + if self.prefix(src=icon_path, dst="") : + self.path("secondlife_256.png","secondlife_icon.png") + if self.prefix(src="",dst="res-sdl") : + self.path("secondlife_256.BMP","ll_icon.BMP") + self.end_prefix("res-sdl") + self.end_prefix(icon_path) + self.path("../viewer_components/updater/scripts/linux/update_install", "bin/update_install") # plugins |