aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lib/python
diff options
context:
space:
mode:
authorJacek Antonelli2009-11-28 00:04:25 -0600
committerJacek Antonelli2009-11-28 00:04:25 -0600
commit4bbee8774d743fb4787fc2435a20d89539011fa4 (patch)
tree205bc840bc52a4a83526e7441ed3efae3937f5b0 /linden/indra/lib/python
parent'FALSE' is supposed to be 'OFF' in develop.py. (diff)
parentSecond Life viewer sources 1.23.5 (diff)
downloadmeta-impy-4bbee8774d743fb4787fc2435a20d89539011fa4.zip
meta-impy-4bbee8774d743fb4787fc2435a20d89539011fa4.tar.gz
meta-impy-4bbee8774d743fb4787fc2435a20d89539011fa4.tar.bz2
meta-impy-4bbee8774d743fb4787fc2435a20d89539011fa4.tar.xz
Merged SL 1.23.5 into Imprudence.
Conflicts: linden/indra/cmake/CopyWinLibs.cmake linden/indra/lib/python/indra/util/llversion.py linden/indra/llcommon/llversionviewer.h linden/indra/newview/English.lproj/InfoPlist.strings linden/indra/newview/Info-Imprudence.plist linden/indra/newview/llassetuploadresponders.cpp linden/indra/newview/llpreview.cpp linden/indra/newview/res/viewerRes.rc linden/indra/newview/viewer_manifest.py
Diffstat (limited to 'linden/indra/lib/python')
-rw-r--r--linden/indra/lib/python/indra/util/llversion.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/lib/python/indra/util/llversion.py b/linden/indra/lib/python/indra/util/llversion.py
index 0e59c17..aedb947 100644
--- a/linden/indra/lib/python/indra/util/llversion.py
+++ b/linden/indra/lib/python/indra/util/llversion.py
@@ -43,7 +43,7 @@ def get_version_file_contents(version_type):
43 file.close() 43 file.close()
44 return file_str 44 return file_str
45 45
46def get_version(version_type): 46def get_version(version_type, revision=0):
47 file_str = get_version_file_contents(version_type) 47 file_str = get_version_file_contents(version_type)
48 m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', file_str) 48 m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', file_str)
49 VER_MAJOR = m.group(1) 49 VER_MAJOR = m.group(1)
@@ -61,11 +61,11 @@ def get_channel(version_type):
61 m = re.search('const char \* const LL_CHANNEL = "(.+)";', file_str) 61 m = re.search('const char \* const LL_CHANNEL = "(.+)";', file_str)
62 return m.group(1) 62 return m.group(1)
63 63
64def get_viewer_version(): 64def get_viewer_version(revision=0):
65 return get_version('viewer') 65 return get_version('viewer', revision)
66 66
67def get_server_version(): 67def get_server_version(revision=0):
68 return get_version('server') 68 return get_version('server', revision)
69 69
70def get_viewer_channel(): 70def get_viewer_channel():
71 return get_channel('viewer') 71 return get_channel('viewer')