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

jmr at macports.org jmr at macports.org
Fri Nov 22 21:18:03 PST 2013


Revision: 113690
          https://trac.macports.org/changeset/113690
Author:   jmr at macports.org
Date:     2013-11-22 21:18:03 -0800 (Fri, 22 Nov 2013)
Log Message:
-----------
move vercmp to after pextlib is required

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2013-11-23 05:06:59 UTC (rev 113689)
+++ trunk/base/src/macports1.0/macports.tcl	2013-11-23 05:18:03 UTC (rev 113690)
@@ -762,14 +762,6 @@
             return -code error "$portdbpath is not a directory. Please create the directory $portdbpath and try again"
         }
     }
-    # set the hidden flag on $portdbpath to avoid spotlight indexing, which
-    # might slow builds down considerably. You can avoid this by touching
-    # $portdbpath/.nohide.
-    if {$os_platform eq "darwin" && [vercmp [info tclversion] 8.5] >= 0 && ![file exists [file join $portdbpath .nohide]] && [file writable $portdbpath] && [file attributes $portdbpath -hidden] == 0} {
-        if {[catch {file attributes $portdbpath -hidden yes} result]} {
-            ui_debug "error setting hidden flag for $portdbpath: $result"
-        }
-    }
 
     set env(HOME) [file join $portdbpath home]
     set registry.path $portdbpath
@@ -1030,6 +1022,15 @@
         return -code error "Library directory '$libpath' must exist"
     }
 
+    # set the hidden flag on $portdbpath to avoid spotlight indexing, which
+    # might slow builds down considerably. You can avoid this by touching
+    # $portdbpath/.nohide.
+    if {$os_platform eq "darwin" && [vercmp [info tclversion] 8.5] >= 0 && ![file exists [file join $portdbpath .nohide]] && [file writable $portdbpath] && [file attributes $portdbpath -hidden] == 0} {
+        if {[catch {file attributes $portdbpath -hidden yes} result]} {
+            ui_debug "error setting hidden flag for $portdbpath: $result"
+        }
+    }
+
     # don't keep unusable TMPDIR/TMP values
     foreach var {TMP TMPDIR} {
         if {[info exists env($var)] && [file writable $env($var)] &&
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131122/915eb921/attachment.html>


More information about the macports-changes mailing list