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

jmr at macports.org jmr at macports.org
Tue Feb 21 07:58:21 PST 2012


Revision: 90088
          http://trac.macports.org/changeset/90088
Author:   jmr at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120221/9c5abb5d/attachment.html>


More information about the macports-changes mailing list