diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-02-18 15:30:18 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-02-18 15:30:18 +0000 |
commit | e8b362a885cdb72eba9b6e8d54f49001cd1d2bc0 (patch) | |
tree | 3038d5651282448e32d9731b83697a187153760e /lldb/scripts/Python | |
parent | 5de6192e1276765a2f567f5de30824d6693cd8cd (diff) | |
download | bcm5719-llvm-e8b362a885cdb72eba9b6e8d54f49001cd1d2bc0.tar.gz bcm5719-llvm-e8b362a885cdb72eba9b6e8d54f49001cd1d2bc0.zip |
Fix make_symlink in case when symlink already exists (after r229517)
llvm-svn: 229682
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/finishSwigPythonLLDB.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py index 10996d442c9..a145d88aea6 100644 --- a/lldb/scripts/Python/finishSwigPythonLLDB.py +++ b/lldb/scripts/Python/finishSwigPythonLLDB.py @@ -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, |