]> git.saurik.com Git - wxWidgets.git/commitdiff
Forward port 2.8 fix.
authorKevin Ollivier <kevino@theolliviers.com>
Wed, 6 Jan 2010 22:02:59 +0000 (22:02 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Wed, 6 Jan 2010 22:02:59 +0000 (22:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/scripts/mac/lipo-dir.py

index 79678a515bf91a2af6baf4e51c8331fdb2669f82..aaee9d0735f7ca1fdb370b4ec91e9a28379f3097 100644 (file)
@@ -24,6 +24,8 @@ def lipo_walker(data, dirname, names):
                 print "Successfully created %s" % outputfile
         else:
             if os.path.islink(fullpath):
+                if os.path.exists(outputfile):
+                    os.remove(outputfile)
                 linkto = os.readlink(fullpath)
                 
                 if linkto.startswith(ppc_basedir):
@@ -51,4 +53,4 @@ if __name__ == "__main__":
     outputdir = sys.argv[3]
         
     os.path.walk(ppc_basedir, lipo_walker, None)
-    
\ No newline at end of file
+