[66698] trunk/base/src/port1.0/portutil.tcl

jmr at macports.org jmr at macports.org
Tue Apr 20 10:20:31 PDT 2010


Revision: 66698
          http://trac.macports.org/changeset/66698
Author:   jmr at macports.org
Date:     2010-04-20 10:20:27 -0700 (Tue, 20 Apr 2010)
Log Message:
-----------
only warn about lack of privileges if it really might be problematic

Modified Paths:
--------------
    trunk/base/src/port1.0/portutil.tcl

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2010-04-20 17:12:31 UTC (rev 66697)
+++ trunk/base/src/port1.0/portutil.tcl	2010-04-20 17:20:27 UTC (rev 66698)
@@ -1523,16 +1523,14 @@
             ln -sf $workpath $worksymlink
         }
     }
-    
-    if { [getuid] != 0 } {
-        ui_warn_once "privileges" "MacPorts running without privileges.\
-                You may be unable to complete certain actions (e.g. install)."
-    }
-    
+
     # de-escalate privileges if MacPorts was started with sudo
     dropPrivileges
     
     if {$usealtworkpath} {
+         ui_warn_once "privileges" "MacPorts running without privileges.\
+                You may be unable to complete certain actions (e.g. install)."
+
         set newsourcepath "$altprefix/$portpath"
     
         # copy Portfile (and patch files) if not there already
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100420/a21a5e9b/attachment-0001.html>


More information about the macports-changes mailing list