summaryrefslogtreecommitdiff
path: root/indra/lib/python
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-05-22 11:23:51 -0700
committerMerov Linden <merov@lindenlab.com>2013-05-22 11:23:51 -0700
commit2113bb8159cda689e8a6001d2d1548cb2c6ab50f (patch)
treee004263a4b646ff0c1f6f0d5319977c9bff807c4 /indra/lib/python
parent34142d3f44d8f2a6fa5fb1ccf03f1ade1730c881 (diff)
parent0ebcb7e3fd1452d42b5ca48139f99a4fd632d235 (diff)
Pull merge from viewer-release
Diffstat (limited to 'indra/lib/python')
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/__init__.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/__init__.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/cllsd_test.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/config.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/llsd.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/lluuid.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/base/metrics.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/__init__.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/compatibility.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/httputil.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/llmessage.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/llsdhttp.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/mysql_pool.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/russ.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/servicebuilder.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/siesta.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/siesta_test.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/tokenstream.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/webdav.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/ipc/xml_rpc.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/__init__.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/fastest_elementtree.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/helpformatter.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/iterators.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/llmanifest.py48
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/llsubprocess.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/llversion.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/named_query.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/shutil2.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/term.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/indra/util/test_win32_manifest.py0
-rwxr-xr-x[-rw-r--r--]indra/lib/python/uuid.py0
32 files changed, 13 insertions, 35 deletions
diff --git a/indra/lib/python/indra/__init__.py b/indra/lib/python/indra/__init__.py
index 0c5053cf49..0c5053cf49 100644..100755
--- a/indra/lib/python/indra/__init__.py
+++ b/indra/lib/python/indra/__init__.py
diff --git a/indra/lib/python/indra/base/__init__.py b/indra/lib/python/indra/base/__init__.py
index 2904fd3380..2904fd3380 100644..100755
--- a/indra/lib/python/indra/base/__init__.py
+++ b/indra/lib/python/indra/base/__init__.py
diff --git a/indra/lib/python/indra/base/cllsd_test.py b/indra/lib/python/indra/base/cllsd_test.py
index 1f06898ffd..1f06898ffd 100644..100755
--- a/indra/lib/python/indra/base/cllsd_test.py
+++ b/indra/lib/python/indra/base/cllsd_test.py
diff --git a/indra/lib/python/indra/base/config.py b/indra/lib/python/indra/base/config.py
index adafa29b51..adafa29b51 100644..100755
--- a/indra/lib/python/indra/base/config.py
+++ b/indra/lib/python/indra/base/config.py
diff --git a/indra/lib/python/indra/base/llsd.py b/indra/lib/python/indra/base/llsd.py
index 4527b115f9..4527b115f9 100644..100755
--- a/indra/lib/python/indra/base/llsd.py
+++ b/indra/lib/python/indra/base/llsd.py
diff --git a/indra/lib/python/indra/base/lluuid.py b/indra/lib/python/indra/base/lluuid.py
index 369ae4e92f..369ae4e92f 100644..100755
--- a/indra/lib/python/indra/base/lluuid.py
+++ b/indra/lib/python/indra/base/lluuid.py
diff --git a/indra/lib/python/indra/base/metrics.py b/indra/lib/python/indra/base/metrics.py
index ff8380265f..ff8380265f 100644..100755
--- a/indra/lib/python/indra/base/metrics.py
+++ b/indra/lib/python/indra/base/metrics.py
diff --git a/indra/lib/python/indra/ipc/__init__.py b/indra/lib/python/indra/ipc/__init__.py
index 302bbf4a03..302bbf4a03 100644..100755
--- a/indra/lib/python/indra/ipc/__init__.py
+++ b/indra/lib/python/indra/ipc/__init__.py
diff --git a/indra/lib/python/indra/ipc/compatibility.py b/indra/lib/python/indra/ipc/compatibility.py
index b9045c22f3..b9045c22f3 100644..100755
--- a/indra/lib/python/indra/ipc/compatibility.py
+++ b/indra/lib/python/indra/ipc/compatibility.py
diff --git a/indra/lib/python/indra/ipc/httputil.py b/indra/lib/python/indra/ipc/httputil.py
index d53f34a771..d53f34a771 100644..100755
--- a/indra/lib/python/indra/ipc/httputil.py
+++ b/indra/lib/python/indra/ipc/httputil.py
diff --git a/indra/lib/python/indra/ipc/llmessage.py b/indra/lib/python/indra/ipc/llmessage.py
index 91fb36b72c..91fb36b72c 100644..100755
--- a/indra/lib/python/indra/ipc/llmessage.py
+++ b/indra/lib/python/indra/ipc/llmessage.py
diff --git a/indra/lib/python/indra/ipc/llsdhttp.py b/indra/lib/python/indra/ipc/llsdhttp.py
index cbe8ee1eca..cbe8ee1eca 100644..100755
--- a/indra/lib/python/indra/ipc/llsdhttp.py
+++ b/indra/lib/python/indra/ipc/llsdhttp.py
diff --git a/indra/lib/python/indra/ipc/mysql_pool.py b/indra/lib/python/indra/ipc/mysql_pool.py
index e5855a3091..e5855a3091 100644..100755
--- a/indra/lib/python/indra/ipc/mysql_pool.py
+++ b/indra/lib/python/indra/ipc/mysql_pool.py
diff --git a/indra/lib/python/indra/ipc/russ.py b/indra/lib/python/indra/ipc/russ.py
index ac780f128b..ac780f128b 100644..100755
--- a/indra/lib/python/indra/ipc/russ.py
+++ b/indra/lib/python/indra/ipc/russ.py
diff --git a/indra/lib/python/indra/ipc/servicebuilder.py b/indra/lib/python/indra/ipc/servicebuilder.py
index 0a0ce2b4e2..0a0ce2b4e2 100644..100755
--- a/indra/lib/python/indra/ipc/servicebuilder.py
+++ b/indra/lib/python/indra/ipc/servicebuilder.py
diff --git a/indra/lib/python/indra/ipc/siesta.py b/indra/lib/python/indra/ipc/siesta.py
index d867e71537..d867e71537 100644..100755
--- a/indra/lib/python/indra/ipc/siesta.py
+++ b/indra/lib/python/indra/ipc/siesta.py
diff --git a/indra/lib/python/indra/ipc/siesta_test.py b/indra/lib/python/indra/ipc/siesta_test.py
index a35eed2460..a35eed2460 100644..100755
--- a/indra/lib/python/indra/ipc/siesta_test.py
+++ b/indra/lib/python/indra/ipc/siesta_test.py
diff --git a/indra/lib/python/indra/ipc/tokenstream.py b/indra/lib/python/indra/ipc/tokenstream.py
index b96f26d3ff..b96f26d3ff 100644..100755
--- a/indra/lib/python/indra/ipc/tokenstream.py
+++ b/indra/lib/python/indra/ipc/tokenstream.py
diff --git a/indra/lib/python/indra/ipc/webdav.py b/indra/lib/python/indra/ipc/webdav.py
index 98b8499b6a..98b8499b6a 100644..100755
--- a/indra/lib/python/indra/ipc/webdav.py
+++ b/indra/lib/python/indra/ipc/webdav.py
diff --git a/indra/lib/python/indra/ipc/xml_rpc.py b/indra/lib/python/indra/ipc/xml_rpc.py
index 47536c10c3..47536c10c3 100644..100755
--- a/indra/lib/python/indra/ipc/xml_rpc.py
+++ b/indra/lib/python/indra/ipc/xml_rpc.py
diff --git a/indra/lib/python/indra/util/__init__.py b/indra/lib/python/indra/util/__init__.py
index b004e5804f..b004e5804f 100644..100755
--- a/indra/lib/python/indra/util/__init__.py
+++ b/indra/lib/python/indra/util/__init__.py
diff --git a/indra/lib/python/indra/util/fastest_elementtree.py b/indra/lib/python/indra/util/fastest_elementtree.py
index 4fcf662dd9..4fcf662dd9 100644..100755
--- a/indra/lib/python/indra/util/fastest_elementtree.py
+++ b/indra/lib/python/indra/util/fastest_elementtree.py
diff --git a/indra/lib/python/indra/util/helpformatter.py b/indra/lib/python/indra/util/helpformatter.py
index ba5c9b67d1..ba5c9b67d1 100644..100755
--- a/indra/lib/python/indra/util/helpformatter.py
+++ b/indra/lib/python/indra/util/helpformatter.py
diff --git a/indra/lib/python/indra/util/iterators.py b/indra/lib/python/indra/util/iterators.py
index 9013fa6303..9013fa6303 100644..100755
--- a/indra/lib/python/indra/util/iterators.py
+++ b/indra/lib/python/indra/util/iterators.py
diff --git a/indra/lib/python/indra/util/llmanifest.py b/indra/lib/python/indra/util/llmanifest.py
index 97cc31bba0..9cb830a2db 100644..100755
--- a/indra/lib/python/indra/util/llmanifest.py
+++ b/indra/lib/python/indra/util/llmanifest.py
@@ -84,30 +84,8 @@ def get_default_platform(dummy):
'darwin':'darwin'
}[sys.platform]
-def get_default_version(srctree):
- # look up llversion.h and parse out the version info
- paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']]
- for p in paths:
- if os.path.exists(p):
- contents = open(p, 'r').read()
- major = re.search("LL_VERSION_MAJOR\s=\s([0-9]+)", contents).group(1)
- minor = re.search("LL_VERSION_MINOR\s=\s([0-9]+)", contents).group(1)
- patch = re.search("LL_VERSION_PATCH\s=\s([0-9]+)", contents).group(1)
- build = re.search("LL_VERSION_BUILD\s=\s([0-9]+)", contents).group(1)
- return major, minor, patch, build
-
-def get_channel(srctree):
- # look up llversionserver.h and parse out the version info
- paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']]
- for p in paths:
- if os.path.exists(p):
- contents = open(p, 'r').read()
- channel = re.search("LL_CHANNEL\s=\s\"(.+)\";\s*$", contents, flags = re.M).group(1)
- return channel
-
-
DEFAULT_SRCTREE = os.path.dirname(sys.argv[0])
-DEFAULT_CHANNEL = 'Second Life Release'
+RELEASE_CHANNEL = 'Second Life Release'
ARGUMENTS=[
dict(name='actions',
@@ -140,10 +118,7 @@ ARGUMENTS=[
default=""),
dict(name='channel',
description="""The channel to use for updates, packaging, settings name, etc.""",
- default=get_channel),
- dict(name='login_channel',
- description="""The channel to use for login handshake/updates only.""",
- default=None),
+ default='CHANNEL UNSET'),
dict(name='installer_name',
description=""" The name of the file that the installer should be
packaged up into. Only used on Linux at the moment.""",
@@ -164,10 +139,8 @@ ARGUMENTS=[
contain the name of the final package in a form suitable
for use by a .bat file.""",
default=None),
- dict(name='version',
- description="""This specifies the version of Second Life that is
- being packaged up.""",
- default=get_default_version),
+ dict(name='versionfile',
+ description="""The name of a file containing the full version number."""),
dict(name='signature',
description="""This specifies an identity to sign the viewer with, if any.
If no value is supplied, the default signature will be used, if any. Currently
@@ -232,9 +205,14 @@ def main():
args[arg['name']] = default
# fix up version
- if isinstance(args.get('version'), str):
- args['version'] = args['version'].split('.')
-
+ if isinstance(args.get('versionfile'), str):
+ try: # read in the version string
+ vf = open(args['versionfile'], 'r')
+ args['version'] = vf.read().strip().split('.')
+ except:
+ print "Unable to read versionfile '%s'" % args['versionfile']
+ raise
+
# default and agni are default
if args['grid'] in ['default', 'agni']:
args['grid'] = ''
@@ -291,7 +269,7 @@ class LLManifest(object):
def default_grid(self):
return self.args.get('grid', None) == ''
def default_channel(self):
- return self.args.get('channel', None) == DEFAULT_CHANNEL
+ return self.args.get('channel', None) == RELEASE_CHANNEL
def construct(self):
""" Meant to be overriden by LLManifest implementors with code that
diff --git a/indra/lib/python/indra/util/llsubprocess.py b/indra/lib/python/indra/util/llsubprocess.py
index 7e0e115d14..7e0e115d14 100644..100755
--- a/indra/lib/python/indra/util/llsubprocess.py
+++ b/indra/lib/python/indra/util/llsubprocess.py
diff --git a/indra/lib/python/indra/util/llversion.py b/indra/lib/python/indra/util/llversion.py
index ba6f567b60..ba6f567b60 100644..100755
--- a/indra/lib/python/indra/util/llversion.py
+++ b/indra/lib/python/indra/util/llversion.py
diff --git a/indra/lib/python/indra/util/named_query.py b/indra/lib/python/indra/util/named_query.py
index 6bf956107d..6bf956107d 100644..100755
--- a/indra/lib/python/indra/util/named_query.py
+++ b/indra/lib/python/indra/util/named_query.py
diff --git a/indra/lib/python/indra/util/shutil2.py b/indra/lib/python/indra/util/shutil2.py
index 9e2e7a6ded..9e2e7a6ded 100644..100755
--- a/indra/lib/python/indra/util/shutil2.py
+++ b/indra/lib/python/indra/util/shutil2.py
diff --git a/indra/lib/python/indra/util/term.py b/indra/lib/python/indra/util/term.py
index 8c316a1f12..8c316a1f12 100644..100755
--- a/indra/lib/python/indra/util/term.py
+++ b/indra/lib/python/indra/util/term.py
diff --git a/indra/lib/python/indra/util/test_win32_manifest.py b/indra/lib/python/indra/util/test_win32_manifest.py
index 0532cb0065..0532cb0065 100644..100755
--- a/indra/lib/python/indra/util/test_win32_manifest.py
+++ b/indra/lib/python/indra/util/test_win32_manifest.py
diff --git a/indra/lib/python/uuid.py b/indra/lib/python/uuid.py
index e956383cca..e956383cca 100644..100755
--- a/indra/lib/python/uuid.py
+++ b/indra/lib/python/uuid.py