<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/8460505fc3876917a579b09c91e4a4130e12618e">https://github.com/macports/macports-base/commit/8460505fc3876917a579b09c91e4a4130e12618e</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 8460505 base: warning if reinplace doesn't change anything
</span>8460505 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8460505fc3876917a579b09c91e4a4130e12618e
</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>---
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 a1d09ea..49b80b2 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>