<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/77161291d15398ce5894ef0db771045fbe0a62b9">https://github.com/macports/macports-base/commit/77161291d15398ce5894ef0db771045fbe0a62b9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 77161291d15398ce5894ef0db771045fbe0a62b9
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Jun 14 15:56:13 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> Don't add extra quoting to startupitems key values
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This allows multi-command init, start, stop, and restart values to work
</span><span style='display:block; white-space:pre;color:#404040;'> and allows executable values with arguments to work. This gives the
</span><span style='display:block; white-space:pre;color:#404040;'> startupitems option feature parity with the older startupitem options.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Unfortunately it is also a change in syntax for existing users of the
</span><span style='display:block; white-space:pre;color:#404040;'> init, start, stop, restart, and executable keys of the startupitems
</span><span style='display:block; white-space:pre;color:#404040;'> option if the values of those keys contain whitespace. An additional
</span><span style='display:block; white-space:pre;color:#404040;'> level of quoting is now required.
</span>---
src/port1.0/portstartupitem.tcl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
<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 a6b6e390..44bb4093 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;'>@@ -1,7 +1,7 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# portstartupitem.tcl
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Copyright (c) 2004-2012 The MacPorts Project
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Copyright (c) 2004-2014, 2016-2018, 2020 The MacPorts Project
</span> # Copyright (c) 2006-2007 James D. Berry
# Copyright (c) 2004,2005 Markus W. Weissman <mww@macports.org>
# All rights reserved.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -146,7 +146,7 @@ proc portstartupitem::foreach_startupitem {body} {
</span> lappend startupitems_dict($curname) uniquename $uniquename
lappend startupitems_dict($curname) plist ${uniquename}.plist
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend startupitems_dict($curname) $key [list $val]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend startupitems_dict($curname) $key $val
</span> }
} else {
global startupitem.name
</pre><pre style='margin:0'>
</pre>