<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/f2431c2deb96653a99d3d1465be198e34da6a6ab">https://github.com/macports/macports-base/commit/f2431c2deb96653a99d3d1465be198e34da6a6ab</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f2431c2deb96653a99d3d1465be198e34da6a6ab
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Feb 11 04:39:41 2024 +1100
<span style='display:block; white-space:pre;color:#404040;'> add_ports_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 34b3ce596..44ac69cf1 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;'>@@ -1246,7 +1246,8 @@ proc add_ports_to_portlist_with_defaults {listname ports {overrides ""}} {
</span> }
set i 0
foreach port $ports {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![dict exists $port url] && ![dict exists $port name]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {(![dict exists $port url] || [dict get $port url] eq "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (![dict exists $port name] || [dict get $port name] eq "")} {
</span> set url file://.
set portname [url_to_portname $url]
dict set port url $url
</pre><pre style='margin:0'>
</pre>