<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/835a7db11d1b1b317860b6fbe69ad70fa7e161b1">https://github.com/macports/macports-base/commit/835a7db11d1b1b317860b6fbe69ad70fa7e161b1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 835a7db  For install action, abort if any @version is provided on command line
</span><span style='display:block; white-space:pre;color:#404040;'>     new 889f25a  For install action, abort if any @version is provided on command line (#174)
</span>835a7db is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 835a7db11d1b1b317860b6fbe69ad70fa7e161b1
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Tue May 12 21:27:52 2020 -0400

<span style='display:block; white-space:pre;color:#404040;'>    For install action, abort if any @version is provided on command line
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    The install action has always ignored any @version provided on the
</span><span style='display:block; white-space:pre;color:#404040;'>    command line.  This causes confusion for users so change to abort the
</span><span style='display:block; white-space:pre;color:#404040;'>    command and force user to remove the @version.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/60454
</span>---
 src/port/port.tcl | 7 +++++++
 1 file changed, 7 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/port.tcl b/src/port/port.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 94cf93e..88e8002 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4765,6 +4765,13 @@ proc process_cmd { argv } {
</span>             }
         }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {$action eq "install"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            array set portinfo [lindex $portlist 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            if {[info exists portinfo(version)] && $portinfo(version) ne "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                fatal "install ignores the provided version $portinfo(version); remove it to continue."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # execute the action
         set action_status [$action_proc $action $portlist [array get global_options]]
 
</pre><pre style='margin:0'>

</pre>