Show More
@@ -2009,8 +2009,10 b' def copyfiles(src, dst, hardlink=None, p' | |||||
2009 | if hardlink: |
|
2009 | if hardlink: | |
2010 | try: |
|
2010 | try: | |
2011 | oslink(src, dst) |
|
2011 | oslink(src, dst) | |
2012 | except (IOError, OSError): |
|
2012 | except (IOError, OSError) as exc: | |
2013 | hardlink = False |
|
2013 | if exc.errno != errno.EEXIST: | |
|
2014 | hardlink = False | |||
|
2015 | # XXX maybe try to relink if the file exist ? | |||
2014 | shutil.copy(src, dst) |
|
2016 | shutil.copy(src, dst) | |
2015 | else: |
|
2017 | else: | |
2016 | shutil.copy(src, dst) |
|
2018 | shutil.copy(src, dst) |
General Comments 0
You need to be logged in to leave comments.
Login now