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

dports at macports.org dports at macports.org
Sun Feb 19 12:35:00 PST 2012


Revision: 90020
          http://trac.macports.org/changeset/90020
Author:   dports at macports.org
Date:     2012-02-19 12:34:58 -0800 (Sun, 19 Feb 2012)
Log Message:
-----------
set ownership on the newly-created Xcode plist in $macportsuser's home
dir

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-19 20:16:05 UTC (rev 90019)
+++ trunk/base/src/macports1.0/macports.tcl	2012-02-19 20:34:58 UTC (rev 90020)
@@ -1160,13 +1160,14 @@
 
 # link plist for xcode 4.3's benefit
 proc macports::copy_xcode_plist {target_homedir} {
-    global macports::user_home
+    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"
     if {[file isfile $user_plist]} {
         if {[catch {
                 file mkdir "${target_homedir}/Library/Preferences"
                 file copy -force $user_plist $target_dir
+                file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser
                 } result]} {
             ui_debug "Failed to copy com.apple.dt.Xcode.plist: $result"
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120219/affd55e8/attachment-0001.html>


More information about the macports-changes mailing list