From e8b362a885cdb72eba9b6e8d54f49001cd1d2bc0 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Wed, 18 Feb 2015 15:30:18 +0000 Subject: Fix make_symlink in case when symlink already exists (after r229517) llvm-svn: 229682 --- lldb/scripts/Python/finishSwigPythonLLDB.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/scripts/Python/finishSwigPythonLLDB.py') diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py index 10996d4..a145d88 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, -- cgit v1.1