]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Wed, 10 Nov 1999 18:01:32 +0000 (18:01 +0000)
committercas <cas@opencascade.com>
Wed, 10 Nov 1999 18:01:32 +0000 (18:01 +0000)
src/WOKUtils/WOKUtils_Replace.tcl

index dba617ba2030a1d41008d24bf896296d542b0269..ca960674b18d814cb580278723c25af3d2783da4 100755 (executable)
@@ -41,7 +41,7 @@ proc WOKUtils_Replace:Execute { unit args } {
     set tcl_interactive 1
     package require Wokutils
 
-    msgprint -i -c "WOKUtils_Replace:Execute" "Copying of WOKUtils includes"
+    msgprint -i -c "WOKUtils_Replace::Execute" "Copying of WOKUtils includes"
 
     if { [wokparam -e %Station $unit] != "wnt" } {
        set copycmd "cp -p "
@@ -66,16 +66,16 @@ proc WOKUtils_Replace:Execute { unit args } {
 
        if { [wokparam -e %Station $unit] == "wnt" && $result != "" } {
            set result 0
-       }
+       } else { set result 1 }
        
        if { ! $result } {
-           msgprint -i -c "WOKUtils_Replace:Execute" "Copy $source to $target"
+           msgprint -i -c "WOKUtils_Replace::Execute" "Copy $source to $target"
            if { [file exist $target] && [wokparam -e %Station $unit] != "wnt" } {
                eval exec "chmod u+w $target"
            }
            eval exec "$copycmd $TheArgs"
        } else {
-           msgprint -i -c "WOKUtils_Replace:Execute" "No change in $source"
+           msgprint -i -c "WOKUtils_Replace::Execute" "No change in $source"
        }
     }
     return 0;