Ticket #15514: reinplace-warning6.diff
File reinplace-warning6.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
src/port1.0/portutil.tcl
875 875 876 876 set extended 0 877 877 set suppress 0 878 set quiet 0 878 879 while 1 { 879 880 set arg [lindex $args 0] 880 881 if {[string index $arg 0] eq "-"} { … … 886 887 n { 887 888 set suppress 1 888 889 } 890 q { 891 set quiet 1 892 } 889 893 - { 890 894 break 891 895 } … … 898 902 } 899 903 } 900 904 if {[llength $args] < 2} { 901 error "reinplace ?-E? pattern file ..."905 error "reinplace ?-E? ?-n? ?-q? pattern file ..." 902 906 } 903 907 set pattern [lindex $args 0] 904 908 set files [lrange $args 1 end] … … 939 943 940 944 close $tmpfd 941 945 946 if {![catch {exec cmp -s $file $tmpfile}]} { 947 if {!$quiet} { 948 ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]" 949 } 950 } 951 942 952 set attributes [file attributes $file] 943 953 # start gsoc08-privileges 944 954 chownAsRoot $file