diff options
Diffstat (limited to 'linden/indra/lib')
-rw-r--r-- | linden/indra/lib/python/indra/util/llmanifest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/lib/python/indra/util/llmanifest.py b/linden/indra/lib/python/indra/util/llmanifest.py index 029b697..2408fab 100644 --- a/linden/indra/lib/python/indra/util/llmanifest.py +++ b/linden/indra/lib/python/indra/util/llmanifest.py | |||
@@ -38,6 +38,7 @@ import re | |||
38 | import shutil | 38 | import shutil |
39 | import sys | 39 | import sys |
40 | import tarfile | 40 | import tarfile |
41 | import errno | ||
41 | 42 | ||
42 | def path_ancestors(path): | 43 | def path_ancestors(path): |
43 | path = os.path.normpath(path) | 44 | path = os.path.normpath(path) |
@@ -463,6 +464,12 @@ class LLManifest(object): | |||
463 | return | 464 | return |
464 | # only copy if it's not excluded | 465 | # only copy if it's not excluded |
465 | if(self.includes(src, dst)): | 466 | if(self.includes(src, dst)): |
467 | try: | ||
468 | os.unlink(dst) | ||
469 | except OSError, err: | ||
470 | if err.errno != errno.ENOENT: | ||
471 | raise | ||
472 | |||
466 | shutil.copy2(src, dst) | 473 | shutil.copy2(src, dst) |
467 | 474 | ||
468 | def ccopytree(self, src, dst): | 475 | def ccopytree(self, src, dst): |