Handle symlink replacement more gracefully.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,6 +24,8 @@ def lipo_walker(data, dirname, names):
|
|||||||
print "Successfully created %s" % outputfile
|
print "Successfully created %s" % outputfile
|
||||||
else:
|
else:
|
||||||
if os.path.islink(fullpath):
|
if os.path.islink(fullpath):
|
||||||
|
if os.path.exists(outputfile):
|
||||||
|
os.remove(outputfile)
|
||||||
linkto = os.readlink(fullpath)
|
linkto = os.readlink(fullpath)
|
||||||
|
|
||||||
if linkto.startswith(ppc_basedir):
|
if linkto.startswith(ppc_basedir):
|
||||||
|
Reference in New Issue
Block a user