<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-contrib.
</pre>
<p><a href="https://github.com/macports/macports-contrib/commit/028be12c42a985ba621c1fe50999cb37755a0f07">https://github.com/macports/macports-contrib/commit/028be12c42a985ba621c1fe50999cb37755a0f07</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 028be12c42a985ba621c1fe50999cb37755a0f07
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Jul 11 09:25:48 2019 +1000
<span style='display:block; white-space:pre;color:#404040;'> portindex2json: use string (in)equality operators on strings
</span>---
portindex2json/portindex2json.tcl | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/portindex2json/portindex2json.tcl b/portindex2json/portindex2json.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 338ac93..0977a25 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/portindex2json/portindex2json.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/portindex2json/portindex2json.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -55,7 +55,7 @@ proc get_maintainer_array {maintainer} {
</span> proc parse_maintainers {maintainers} {
set maintainer_subobjects {}
foreach maintainer $maintainers {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$maintainer != "openmaintainer" && $maintainer != "nomaintainer"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$maintainer ne "openmaintainer" && $maintainer ne "nomaintainer"} {
</span> lappend maintainer_subobjects [::json::write object {*}[get_maintainer_array $maintainer]]
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,7 +65,7 @@ proc parse_maintainers {maintainers} {
</span>
proc is_closedmaintainer {maintainers} {
foreach maintainer $maintainers {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$maintainer == "openmaintainer" || $maintainer == "nomaintainer"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$maintainer eq "openmaintainer" || $maintainer eq "nomaintainer"} {
</span> return false
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -146,12 +146,12 @@ while {[gets $fd line] >= 0} {
</span> array set portinfo $line
array unset json_portinfo
foreach key [array names portinfo] {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$key == "categories" || $key == "variants" || [string match "depends_*" $key]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$key eq "categories" || $key eq "variants" || [string match "depends_*" $key]} {
</span> set json_portinfo($key) [tcl2json_list $portinfo($key)]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {$key == "maintainers"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {$key eq "maintainers"} {
</span> set json_portinfo($key) [parse_maintainers $portinfo($key)]
set json_portinfo(closedmaintainer) [is_closedmaintainer $portinfo($key)]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {$key == "long_description"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {$key eq "long_description"} {
</span> set json_portinfo($key) [::json::write string [remove_extra_braces $portinfo($key)]]
} else {
set json_portinfo($key) [::json::write string $portinfo($key)]
</pre><pre style='margin:0'>
</pre>