Show More
@@ -482,11 +482,9 b' def checksignature(func):' | |||||
482 |
|
482 | |||
483 | def copyfile(src, dest): |
|
483 | def copyfile(src, dest): | |
484 | "copy a file, preserving mode and atime/mtime" |
|
484 | "copy a file, preserving mode and atime/mtime" | |
|
485 | if os.path.lexists(dest): | |||
|
486 | unlink(dest) | |||
485 | if os.path.islink(src): |
|
487 | if os.path.islink(src): | |
486 | try: |
|
|||
487 | os.unlink(dest) |
|
|||
488 | except OSError: |
|
|||
489 | pass |
|
|||
490 | os.symlink(os.readlink(src), dest) |
|
488 | os.symlink(os.readlink(src), dest) | |
491 | else: |
|
489 | else: | |
492 | try: |
|
490 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now