Revision: 90054 http://trac.macports.org/changeset/90054 Author: dports@macports.org Date: 2012-02-20 01:23:50 -0800 (Mon, 20 Feb 2012) Log Message: ----------- don't attempt to set permissions on the Xcode plist file if not running as root 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-20 08:17:04 UTC (rev 90053) +++ trunk/base/src/macports1.0/macports.tcl 2012-02-20 09:23:50 UTC (rev 90054) @@ -1171,8 +1171,10 @@ 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]} { + if {[getuid] == 0} { + file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser + } + } result]} { ui_debug "Failed to copy com.apple.dt.Xcode.plist: $result" } }