[90154] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Fri Feb 24 04:28:35 PST 2012


Revision: 90154
          http://trac.macports.org/changeset/90154
Author:   jmr at macports.org
Date:     2012-02-24 04:28:35 -0800 (Fri, 24 Feb 2012)
Log Message:
-----------
delete any existing xcode plist from our home dir before attempting to copy a new one

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2012-02-24 12:27:33 UTC (rev 90153)
+++ trunk/base/src/macports1.0/macports.tcl	2012-02-24 12:28:35 UTC (rev 90154)
@@ -1183,6 +1183,7 @@
     global macports::user_home macports::macportsuser
     set user_plist "${user_home}/Library/Preferences/com.apple.dt.Xcode.plist"
     set target_dir "${target_homedir}/Library/Preferences"
+    file delete -force "${target_dir}/com.apple.dt.Xcode.plist"
     if {[file isfile $user_plist]} {
         if {![file isdirectory "${target_dir}"]} {
             if {[catch {file mkdir "${target_dir}"} result]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120224/e1f610b2/attachment.html>


More information about the macports-changes mailing list