Fix make_symlink in case when symlink already exists (after r229517)

llvm-svn: 229682
This commit is contained in:
Ilia K 2015-02-18 15:30:18 +00:00
parent 5de6192e12
commit e8b362a885
1 changed files with 2 additions and 0 deletions

View File

@ -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,