<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch release-2.4
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/7b288f54f03a715f0d5ad4f3b0596cfca41348c0">https://github.com/macports/macports-base/commit/7b288f54f03a715f0d5ad4f3b0596cfca41348c0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/release-2.4 by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7b288f5 base: warning if reinplace doesn't change anything
</span>7b288f5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7b288f54f03a715f0d5ad4f3b0596cfca41348c0
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Thu Feb 16 15:02:24 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> base: warning if reinplace doesn't change anything
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> see: https://trac.macports.org/ticket/15514
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit 8460505fc3876917a579b09c91e4a4130e12618e)
</span>---
src/port1.0/portutil.tcl | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portutil.tcl b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index b5cf00b..60b0570 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -908,8 +908,6 @@ proc reinplace {args} {
</span> global env workpath worksrcpath
set extended 0
set suppress 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # once a macports version has been released, add the rest of the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # code from https://trac.macports.org/ticket/15514
</span> set quiet 0
set oldlocale_exists 0
set oldlocale ""
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1024,6 +1022,12 @@ proc reinplace {args} {
</span> }
close $tmpfd
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {!$quiet} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec cmp -s $file $tmpfile}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set attributes [file attributes $file]
chownAsRoot $file
</pre><pre style='margin:0'>
</pre>