[54709] trunk/base/src/port1.0/portmain.tcl
jmr at macports.org
jmr at macports.org
Fri Jul 31 15:37:43 PDT 2009
Revision: 54709
http://trac.macports.org/changeset/54709
Author: jmr at macports.org
Date: 2009-07-31 15:37:42 -0700 (Fri, 31 Jul 2009)
Log Message:
-----------
don't *always* use the alt build path
Modified Paths:
--------------
trunk/base/src/port1.0/portmain.tcl
Modified: trunk/base/src/port1.0/portmain.tcl
===================================================================
--- trunk/base/src/port1.0/portmain.tcl 2009-07-31 22:32:25 UTC (rev 54708)
+++ trunk/base/src/port1.0/portmain.tcl 2009-07-31 22:37:42 UTC (rev 54709)
@@ -134,7 +134,7 @@
# if unable to write to workpath, implies running without either root privileges
# or a shared directory owned by the group so use ~/.macports
-if { ([info exists workpath] && [file exists $workpath] && ![file writable $workpath]) || [info exists portbuildpath] && ![file writable $portbuildpath] } {
+if { $euid != 0 && ([info exists workpath] && [file exists $workpath] && ![file writable $workpath]) || [info exists portdbpath] && ![file writable [file join $portdbpath build]] } {
set userid [getuid]
set username [uid_to_name $userid]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090731/a5627d2a/attachment.html>
More information about the macports-changes
mailing list