<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/371cbb6f276c99806b52c7618c0f0d38f4ee288b">https://github.com/macports/macports-base/commit/371cbb6f276c99806b52c7618c0f0d38f4ee288b</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 371cbb6 Work around Tiger's launchctl list limitations
</span>371cbb6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 371cbb6f276c99806b52c7618c0f0d38f4ee288b
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Jul 3 13:32:14 2018 +1000
<span style='display:block; white-space:pre;color:#404040;'> Work around Tiger's launchctl list limitations
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also send irrelevant output from launchctl on older OS versions to /dev/null.
</span>---
src/port1.0/portstartupitem.tcl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portstartupitem.tcl b/src/port1.0/portstartupitem.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 33e9cd6..a6b6e39 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portstartupitem.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portstartupitem.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -513,8 +513,12 @@ proc portstartupitem::loaded {} {
</span> if {![catch {exec -ignorestderr $launchctl_path print ${domain}/${si_uniquename} >&/dev/null}]} {
lappend ret $si_name
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} >= 9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec_as_uid $uid {system "$launchctl_path list ${si_uniquename} > /dev/null"}}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend ret $si_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {exec_as_uid $uid {system "$launchctl_path list ${si_uniquename}"}}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec_as_uid $uid {system "$launchctl_path list | grep -F ${si_uniquename} > /dev/null"}}]} {
</span> lappend ret $si_name
}
}
</pre><pre style='margin:0'>
</pre>