[73684] trunk/base/src/port/port.tcl
jmr at macports.org
jmr at macports.org
Sat Nov 20 23:07:19 PST 2010
Revision: 73684
http://trac.macports.org/changeset/73684
Author: jmr at macports.org
Date: 2010-11-20 23:07:15 -0800 (Sat, 20 Nov 2010)
Log Message:
-----------
still allow dry runs when there are insufficient privileges to do the real thing
Modified Paths:
--------------
trunk/base/src/port/port.tcl
Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl 2010-11-21 07:00:12 UTC (rev 73683)
+++ trunk/base/src/port/port.tcl 2010-11-21 07:07:15 UTC (rev 73684)
@@ -2446,7 +2446,7 @@
proc action_upgrade { action portlist opts } {
- if {[require_portlist portlist] || [prefix_unwritable]} {
+ if {[require_portlist portlist] || ([prefix_unwritable] && ![macports::global_option_isset ports_dryrun])} {
return 1
}
# shared depscache for all ports in the list
@@ -3605,7 +3605,7 @@
if {[require_portlist portlist]} {
return 1
}
- if {($action == "install" || $action == "archive") && [prefix_unwritable]} {
+ if {($action == "install" || $action == "archive") && [prefix_unwritable] && ![macports::global_option_isset ports_dryrun]} {
return 1
}
foreachport $portlist {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101120/a602f355/attachment.html>
More information about the macports-changes
mailing list