diff options
author | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
commit | 8465910c79b8e746e04fd581cca2d60399e569b9 (patch) | |
tree | f43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/lib | |
parent | Second Life viewer sources 1.18.2.1 (diff) | |
download | meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2 meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz |
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to 'linden/indra/lib')
-rw-r--r-- | linden/indra/lib/python/indra/util/llmanifest.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/linden/indra/lib/python/indra/util/llmanifest.py b/linden/indra/lib/python/indra/util/llmanifest.py index 0e46589..c496e95 100644 --- a/linden/indra/lib/python/indra/util/llmanifest.py +++ b/linden/indra/lib/python/indra/util/llmanifest.py | |||
@@ -1,4 +1,3 @@ | |||
1 | #!/usr/bin/python | ||
2 | """\ | 1 | """\ |
3 | @file llmanifest.py | 2 | @file llmanifest.py |
4 | @author Ryan Williams | 3 | @author Ryan Williams |
@@ -77,7 +76,7 @@ def get_default_platform(dummy): | |||
77 | 76 | ||
78 | def get_default_version(srctree): | 77 | def get_default_version(srctree): |
79 | # look up llversion.h and parse out the version info | 78 | # look up llversion.h and parse out the version info |
80 | paths = [os.path.join(srctree, x, 'llversion.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']] | 79 | paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']] |
81 | for p in paths: | 80 | for p in paths: |
82 | if os.path.exists(p): | 81 | if os.path.exists(p): |
83 | contents = open(p, 'r').read() | 82 | contents = open(p, 'r').read() |
@@ -87,6 +86,16 @@ def get_default_version(srctree): | |||
87 | build = re.search("LL_VERSION_BUILD\s=\s([0-9]+)", contents).group(1) | 86 | build = re.search("LL_VERSION_BUILD\s=\s([0-9]+)", contents).group(1) |
88 | return major, minor, patch, build | 87 | return major, minor, patch, build |
89 | 88 | ||
89 | def get_channel(srctree): | ||
90 | # look up llversionserver.h and parse out the version info | ||
91 | paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']] | ||
92 | for p in paths: | ||
93 | if os.path.exists(p): | ||
94 | contents = open(p, 'r').read() | ||
95 | channel = re.search("LL_CHANNEL\s=\s\"([\w\s]+)\"", contents).group(1) | ||
96 | return channel | ||
97 | |||
98 | |||
90 | DEFAULT_CHANNEL = 'Second Life Release' | 99 | DEFAULT_CHANNEL = 'Second Life Release' |
91 | 100 | ||
92 | ARGUMENTS=[ | 101 | ARGUMENTS=[ |
@@ -118,7 +127,7 @@ ARGUMENTS=[ | |||
118 | default=""), | 127 | default=""), |
119 | dict(name='channel', | 128 | dict(name='channel', |
120 | description="""The channel to use for updates.""", | 129 | description="""The channel to use for updates.""", |
121 | default=DEFAULT_CHANNEL), | 130 | default=get_channel), |
122 | dict(name='installer_name', | 131 | dict(name='installer_name', |
123 | description=""" The name of the file that the installer should be | 132 | description=""" The name of the file that the installer should be |
124 | packaged up into. Only used on Linux at the moment.""", | 133 | packaged up into. Only used on Linux at the moment.""", |
@@ -322,7 +331,9 @@ class LLManifest(object): | |||
322 | output = ''.join(lines) | 331 | output = ''.join(lines) |
323 | status = fd.close() | 332 | status = fd.close() |
324 | if(status): | 333 | if(status): |
325 | raise RuntimeError, "Command " + command + " returned non-zero status (" + str(status) + ")" | 334 | raise RuntimeError( |
335 | "Command %s returned non-zero status (%s) \noutput:\n%s" | ||
336 | % (command, status, output) ) | ||
326 | return output | 337 | return output |
327 | 338 | ||
328 | def created_path(self, path): | 339 | def created_path(self, path): |