diff options
author | Jacek Antonelli | 2009-02-12 02:06:41 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-02-12 02:06:45 -0600 |
commit | 61f97b33f9850d21965d397b947a298c16ba576d (patch) | |
tree | a2edff0a7fbc83e2259eda952511b0fbdbea290b /linden/indra/lib | |
parent | Second Life viewer sources 1.22.7-RC (diff) | |
download | meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.zip meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.gz meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.bz2 meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.xz |
Second Life viewer sources 1.22.8-RC
Diffstat (limited to 'linden/indra/lib')
-rw-r--r-- | linden/indra/lib/python/indra/util/llmanifest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/lib/python/indra/util/llmanifest.py b/linden/indra/lib/python/indra/util/llmanifest.py index 59c84e5..12e33f2 100644 --- a/linden/indra/lib/python/indra/util/llmanifest.py +++ b/linden/indra/lib/python/indra/util/llmanifest.py | |||
@@ -452,7 +452,7 @@ class LLManifest(object): | |||
452 | # *TODO is this gonna be useful? | 452 | # *TODO is this gonna be useful? |
453 | print "Cleaning up " + c | 453 | print "Cleaning up " + c |
454 | 454 | ||
455 | def process_file(self, src, dst): | 455 | def process_file(self, src, dst, strip=False): |
456 | if self.includes(src, dst): | 456 | if self.includes(src, dst): |
457 | # print src, "=>", dst | 457 | # print src, "=>", dst |
458 | for action in self.actions: | 458 | for action in self.actions: |
@@ -460,7 +460,7 @@ class LLManifest(object): | |||
460 | method = getattr(self, methodname, None) | 460 | method = getattr(self, methodname, None) |
461 | if method is not None: | 461 | if method is not None: |
462 | method(src, dst) | 462 | method(src, dst) |
463 | self.file_list.append([src, dst]) | 463 | self.file_list.append([src, dst, strip]) |
464 | return 1 | 464 | return 1 |
465 | else: | 465 | else: |
466 | sys.stdout.write(" (excluding %r, %r)" % (src, dst)) | 466 | sys.stdout.write(" (excluding %r, %r)" % (src, dst)) |
@@ -607,7 +607,7 @@ class LLManifest(object): | |||
607 | d = src_re.sub(d_template, s.replace('\\', '/')) | 607 | d = src_re.sub(d_template, s.replace('\\', '/')) |
608 | yield os.path.normpath(s), os.path.normpath(d) | 608 | yield os.path.normpath(s), os.path.normpath(d) |
609 | 609 | ||
610 | def path(self, src, dst=None): | 610 | def path(self, src, dst=None, strip=False): |
611 | sys.stdout.write("Processing %s => %s ... " % (src, dst)) | 611 | sys.stdout.write("Processing %s => %s ... " % (src, dst)) |
612 | sys.stdout.flush() | 612 | sys.stdout.flush() |
613 | if src == None: | 613 | if src == None: |
@@ -622,7 +622,7 @@ class LLManifest(object): | |||
622 | if self.wildcard_pattern.search(src): | 622 | if self.wildcard_pattern.search(src): |
623 | for s,d in self.expand_globs(src, dst): | 623 | for s,d in self.expand_globs(src, dst): |
624 | assert(s != d) | 624 | assert(s != d) |
625 | count += self.process_file(s, d) | 625 | count += self.process_file(s, d, strip) |
626 | else: | 626 | else: |
627 | # if we're specifying a single path (not a glob), | 627 | # if we're specifying a single path (not a glob), |
628 | # we should error out if it doesn't exist | 628 | # we should error out if it doesn't exist |
@@ -631,7 +631,7 @@ class LLManifest(object): | |||
631 | if os.path.isdir(src): | 631 | if os.path.isdir(src): |
632 | count += self.process_directory(src, dst) | 632 | count += self.process_directory(src, dst) |
633 | else: | 633 | else: |
634 | count += self.process_file(src, dst) | 634 | count += self.process_file(src, dst, strip) |
635 | return count | 635 | return count |
636 | try: | 636 | try: |
637 | count = try_path(os.path.join(self.get_src_prefix(), src)) | 637 | count = try_path(os.path.join(self.get_src_prefix(), src)) |