forked from OSchip/llvm-project
Fix make_symlink in case when symlink already exists (after r229517)
llvm-svn: 229682
This commit is contained in:
parent
5de6192e12
commit
e8b362a885
|
@ -316,6 +316,7 @@ def make_symlink( vDictArgs, vstrFrameworkPythonDir, vstrSrcFile, vstrTargetFile
|
|||
if os.path.isfile( strTarget ):
|
||||
if bDbg:
|
||||
print strMsgSymlinkExists % vstrTargetFile;
|
||||
return (bOk, strErrMsg);
|
||||
if bDbg:
|
||||
print strMsgSymlinkMk % (vstrTargetFile, strSrc, strTarget);
|
||||
bOk, strErrMsg = make_symlink_windows( strSrc,
|
||||
|
@ -324,6 +325,7 @@ def make_symlink( vDictArgs, vstrFrameworkPythonDir, vstrSrcFile, vstrTargetFile
|
|||
if os.path.islink( strTarget ):
|
||||
if bDbg:
|
||||
print strMsgSymlinkExists % vstrTargetFile;
|
||||
return (bOk, strErrMsg);
|
||||
if bDbg:
|
||||
print strMsgSymlinkMk % (vstrTargetFile, strSrc, strTarget);
|
||||
bOk, strErrMsg = make_symlink_other_platforms( strSrc,
|
||||
|
|
Loading…
Reference in New Issue