Revision: 90088 http://trac.macports.org/changeset/90088 Author: jmr@macports.org Date: 2012-02-21 07:58:21 -0800 (Tue, 21 Feb 2012) Log Message: ----------- check for Preferences dir writability before copying plist; this is why no warning was printed originally 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-21 15:55:47 UTC (rev 90087) +++ trunk/base/src/macports1.0/macports.tcl 2012-02-21 15:58:21 UTC (rev 90088) @@ -1191,7 +1191,7 @@ } } ui_debug "Copying $user_plist to temporary home directory ${target_dir}" - if {[catch { + if {[file writable ${target_dir}] && [catch { file copy -force $user_plist $target_dir if {[getuid] == 0} { file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser
participants (1)
-
jmr@macports.org