<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/8b36023a4ee2858e7f2c4b367fe57f3de8da5712">https://github.com/macports/macports-base/commit/8b36023a4ee2858e7f2c4b367fe57f3de8da5712</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 8b36023a4 add_to_portlist_with_defaults: check for blank name/url
</span>8b36023a4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8b36023a4ee2858e7f2c4b367fe57f3de8da5712
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Feb 11 05:03:20 2024 +1100
<span style='display:block; white-space:pre;color:#404040;'> add_to_portlist_with_defaults: check for blank name/url
</span>---
src/port/port.tcl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
<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 44ac69cf1..bfb4734e4 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;'>@@ -198,7 +198,8 @@ proc add_to_portlist_with_defaults {listname portentry} {
</span> dict set portentry options [array get ::global_options]
}
# If neither portname nor url is specified, then default to the current port
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![dict exists $portentry url] && ![dict exists $portentry name]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {(![dict exists $portentry url] || [dict get $portentry url] eq "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (![dict exists $portentry name] || [dict get $portentry name] eq "")} {
</span> set url file://.
set portname [url_to_portname $url]
dict set portentry url $url
</pre><pre style='margin:0'>
</pre>