[44050] trunk/base/src/port/port.tcl

raimue at macports.org raimue at macports.org
Fri Dec 19 20:37:24 PST 2008


Revision: 44050
          http://trac.macports.org/changeset/44050
Author:   raimue at macports.org
Date:     2008-12-19 20:37:23 -0800 (Fri, 19 Dec 2008)
Log Message:
-----------
port/port.tcl:
Create macports user directory (~/.macports) if necessary,
fixing problem introduced with r43957

Modified Paths:
--------------
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2008-12-20 02:51:35 UTC (rev 44049)
+++ trunk/base/src/port/port.tcl	2008-12-20 04:37:23 UTC (rev 44050)
@@ -3159,6 +3159,10 @@
         }
     }
 
+    # Create macports user directory if it does not exist yet
+    if {$use_readline && ![file isdirectory $macports::macports_user_dir]} {
+        file mkdir $macports::macports_user_dir
+    }
     # Save readine history
     if {$use_readline && [file isdirectory $macports::macports_user_dir]} {
         rl_history write $history_file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081219/1c0bf295/attachment.html>


More information about the macports-changes mailing list