summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorChristian Goetze <cg@lindenlab.com>2008-03-27 21:07:50 +0000
committerChristian Goetze <cg@lindenlab.com>2008-03-27 21:07:50 +0000
commitbbbaca2af1b16747b04bd2013ad1407c4be34ff8 (patch)
tree4228abc4d0cd3348131f7a0a14fdf815748e9443 /indra/newview
parente62bb2018833bd3e52b1f27095134e08c2dc05fe (diff)
Add dir_list attribute, populate it and use it to set access permissions
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/viewer_manifest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index e87fe8d8ff..1d89b6cf18 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -479,6 +479,15 @@ class LinuxManifest(ViewerManifest):
if re.search("lib/lib.+\.so.*", d):
self.run_command('strip -S %s' % d)
+ # Fixing access permissions
+ for s,d in self.dir_list:
+ self.run_command("chmod 755 '%s'" % d)
+ for s,d in self.file_list:
+ if os.access(d, os.X_OK):
+ self.run_command("chmod 755 '%s'" % d)
+ else:
+ self.run_command("chmod 644 '%s'" % d)
+
def package_finish(self):
if(self.args.has_key('installer_name')):