[113689] trunk/base/src/macports1.0/macports.tcl
jmr at macports.org
jmr at macports.org
Fri Nov 22 21:06:59 PST 2013
Revision: 113689
https://trac.macports.org/changeset/113689
Author: jmr at macports.org
Date: 2013-11-22 21:06:59 -0800 (Fri, 22 Nov 2013)
Log Message:
-----------
fix for r113649, the hidden attribute is only suported on darwin in Tcl 8.5 or later
Revision Links:
--------------
https://trac.macports.org/changeset/113649
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 04:41:12 UTC (rev 113688)
+++ trunk/base/src/macports1.0/macports.tcl 2013-11-23 05:06:59 UTC (rev 113689)
@@ -765,7 +765,7 @@
# 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 {![file exists [file join $portdbpath .nohide]] && [file writable $portdbpath] && [file attributes $portdbpath -hidden] == 0} {
+ 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"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131122/2d2b0542/attachment-0001.html>
More information about the macports-changes
mailing list