Ticket #15514: reinplace-warning8.diff
File reinplace-warning8.diff, 1.3 KB (added by kurthindenburg (Kurt Hindenburg), 10 years ago) |
---|
-
port1.0/portutil.tcl
919 919 global env workpath worksrcpath macosx_version 920 920 set extended 0 921 921 set suppress 0 922 set quiet 0 922 923 set oldlocale_exists 0 923 924 set oldlocale "" 924 925 set locale "" … … 942 943 n { 943 944 set suppress 1 944 945 } 946 q { 947 set quiet 1 948 } 945 949 W { 946 950 set dir [lindex $args 0] 947 951 set args [lrange $args 1 end] … … 958 962 } 959 963 } 960 964 if {[llength $args] < 2} { 961 error "reinplace ?-E? ?-n? ?- W dir? pattern file ..."965 error "reinplace ?-E? ?-n? ?-q? ?-W dir? pattern file ..." 962 966 } 963 967 set pattern [lindex $args 0] 964 968 set files [lrange $args 1 end] … … 1037 1041 } 1038 1042 close $tmpfd 1039 1043 1044 if {!$quiet} { 1045 if {![catch {exec cmp -s $file $tmpfile}]} { 1046 ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]" 1047 } 1048 } 1049 1040 1050 set attributes [file attributes $file] 1041 1051 # start gsoc08-privileges 1042 1052 chownAsRoot $file