diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2017-12-06 17:09:06 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2017-12-06 17:09:06 -0500 |
commit | d79846a779ed6a819a390eb653e78c6f1e25b0e3 (patch) | |
tree | fcc8fc809bda5e1b2b3119738c4023e39d79b362 /indra/newview/viewer_manifest.py | |
parent | e3254f63bca90bb5452fdd3e9771212ec0e850ee (diff) |
MAINT-7751: Respond to Coyot's code-review suggestions.
Diffstat (limited to 'indra/newview/viewer_manifest.py')
-rwxr-xr-x | indra/newview/viewer_manifest.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index 5456c264d3..73631631e0 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -32,6 +32,7 @@ import os.path import shutil import errno import json +import plistlib import random import re import stat @@ -343,7 +344,7 @@ class ViewerManifest(LLManifest): # 'dst' is itself a pathname. dstdir = os.path.dirname(dst) self.cmakedirs(dstdir) - return dstdir, dst + return (dstdir, dst) def _symlinkf(self, src, dst, catch): # helper for relsymlinkf() and symlinkf() @@ -875,9 +876,6 @@ class DarwinManifest(ViewerManifest): return True def construct(self): - global plistlib - import plistlib # only import for Darwin - # These are the names of the top-level application and the embedded # applications for the VMP and for the actual viewer, respectively. # These names, without the .app suffix, determine the flyover text for @@ -914,12 +912,8 @@ open "%s" os.path.join('$(dirname "$0")', os.pardir, 'Resources', launcher_app), "SL_Launcher", # write this file "trampoline") # flag to add to list of copied files - # Script must be executable -- but os.chmod() is pretty low-level: - # if we just chmod(stat.S_IEXEC), we end up with NOTHING BUT x! - # Have to read the existing permissions bits, then supplement with - # x for (user, group, other). - os.chmod(trampoline, stat.S_IMODE(os.stat(trampoline).st_mode) - | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) + # Script must be executable + self.run_command(["chmod", "+x", trampoline]) # Make a symlink to a nested app Frameworks directory that doesn't # yet exist. We shouldn't need this; the only things that need |