Skip to content
Permalink
Browse files

base: warning if reinplace doesn't change anything

  • Loading branch information
kurthindenburg committed Feb 16, 2017
1 parent eaaba18 commit 8460505fc3876917a579b09c91e4a4130e12618e
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/port1.0/portutil.tcl
@@ -908,8 +908,6 @@ proc reinplace {args} {
global env workpath worksrcpath
set extended 0
set suppress 0
# once a macports version has been released, add the rest of the
# code from https://trac.macports.org/ticket/15514
set quiet 0
set oldlocale_exists 0
set oldlocale ""
@@ -1024,6 +1022,12 @@ proc reinplace {args} {
}
close $tmpfd

if {!$quiet} {
if {![catch {exec cmp -s $file $tmpfile}]} {
ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]"
}
}

set attributes [file attributes $file]
chownAsRoot $file

0 comments on commit 8460505

Please sign in to comment.
You can’t perform that action at this time.