diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-01-17 13:54:39 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-01-17 13:54:39 -0500 | 
| commit | 841dc5da2ef9626fa4ab9255681d217df62a6b0b (patch) | |
| tree | 2c5bacebcb27b78d318b6e162334488f6e515974 /indra/lib/python | |
| parent | b7f8a2479249646c7fb38ead195d5197ab733c94 (diff) | |
| parent | d16757545c91d4f7dac3c52a311ad0f0239052e1 (diff) | |
merge up to 3.4.4
Diffstat (limited to 'indra/lib/python')
| -rw-r--r-- | indra/lib/python/indra/util/llmanifest.py | 28 | 
1 files changed, 27 insertions, 1 deletions
diff --git a/indra/lib/python/indra/util/llmanifest.py b/indra/lib/python/indra/util/llmanifest.py index a4fb77357c..97cc31bba0 100644 --- a/indra/lib/python/indra/util/llmanifest.py +++ b/indra/lib/python/indra/util/llmanifest.py @@ -167,7 +167,12 @@ ARGUMENTS=[      dict(name='version',           description="""This specifies the version of Second Life that is          being packaged up.""", -         default=get_default_version) +         default=get_default_version), +    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 +        only used on Mac OS X.""", +         default=None)      ]  def usage(srctree=""): @@ -621,6 +626,23 @@ class LLManifest(object):              d = src_re.sub(d_template, s.replace('\\', '/'))              yield os.path.normpath(s), os.path.normpath(d) +    def path2basename(self, path, file): +        """ +        It is a common idiom to write: +        self.path(os.path.join(somedir, somefile), somefile) + +        So instead you can write: +        self.path2basename(somedir, somefile) + +        Note that this is NOT the same as: +        self.path(os.path.join(somedir, somefile)) + +        which is the same as: +        temppath = os.path.join(somedir, somefile) +        self.path(temppath, temppath) +        """ +        return self.path(os.path.join(path, file), file) +      def path(self, src, dst=None):          sys.stdout.write("Processing %s => %s ... " % (src, dst))          sys.stdout.flush() @@ -666,6 +688,10 @@ class LLManifest(object):          print "%d files" % count +        # Let caller check whether we processed as many files as expected. In +        # particular, let caller notice 0. +        return count +      def do(self, *actions):          self.actions = actions          self.construct()  | 
