diff options
author | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
commit | b235c59d60472f818a9142c0886b95a0ff4191d7 (patch) | |
tree | d323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/lib/python | |
parent | Second Life viewer sources 1.18.5.3 (diff) | |
download | meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2 meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz |
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/lib/python')
-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): |