[100423] trunk/base/src/port

raimue at macports.org raimue at macports.org
Tue Dec 11 09:35:51 PST 2012


Revision: 100423
          https://trac.macports.org/changeset/100423
Author:   raimue at macports.org
Date:     2012-12-11 09:35:51 -0800 (Tue, 11 Dec 2012)
Log Message:
-----------
port:
Add new command line parameter --unrequested to the install command. This way
one can install a port without marking it as requested.

Modified Paths:
--------------
    trunk/base/src/port/port-help.tcl
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port-help.tcl
===================================================================
--- trunk/base/src/port/port-help.tcl	2012-12-11 16:28:13 UTC (rev 100422)
+++ trunk/base/src/port/port-help.tcl	2012-12-11 17:35:51 UTC (rev 100423)
@@ -179,7 +179,9 @@
 }
 
 set porthelp(install) {
-Installs the given ports
+Installs the given ports.
+    --no-rev-upgrade    Do not run rev-upgrade after the installation.
+    --unrequested       Do not mark the port as requested.
 }
 
 set porthelp(installed) {

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2012-12-11 16:28:13 UTC (rev 100422)
+++ trunk/base/src/port/port.tcl	2012-12-11 17:35:51 UTC (rev 100423)
@@ -3960,7 +3960,9 @@
         }
         # if installing, mark the port as explicitly requested
         if {$action == "install"} {
-            set options(ports_requested) 1
+            if {![info exists options(ports_install_unrequested)]} {
+                set options(ports_requested) 1
+            }
             # we actually activate as well
             set target activate
         } elseif {$action == "archive"} {
@@ -4238,7 +4240,7 @@
     space       {{units 1}}
     activate    {no-exec}
     deactivate  {no-exec}
-    install     {no-rev-upgrade}
+    install     {no-rev-upgrade unrequested}
     uninstall   {follow-dependents follow-dependencies no-exec}
     variants    {index}
     clean       {all dist work logs}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121211/0d46c58d/attachment.html>


More information about the macports-changes mailing list