projects
/
tclrobot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af32193
)
Ignore non-task files
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Jun 2003 12:12:35 +0000
(12:12 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Jun 2003 12:12:35 +0000
(12:12 +0000)
robot.tcl
patch
|
blob
|
history
diff --git
a/robot.tcl
b/robot.tcl
index
c79b410
..
231a5ca
100755
(executable)
--- a/
robot.tcl
+++ b/
robot.tcl
@@
-1,5
+1,5
@@
#!/usr/bin/tclsh
#!/usr/bin/tclsh
-# $Id: robot.tcl,v 1.37 2003/06/10 12:08:17 adam Exp $
+# $Id: robot.tcl,v 1.38 2003/06/10 12:12:35 adam Exp $
#
proc RobotFileNext1 {area lead} {
# puts "RobotFileNext1 area=$area lead=$lead"
#
proc RobotFileNext1 {area lead} {
# puts "RobotFileNext1 area=$area lead=$lead"
@@
-225,8
+225,10
@@
proc RobotStartJob {fname t} {
set f [open $fname r]
set xml [read $f]
puts "Reading $fname"
set f [open $fname r]
set xml [read $f]
puts "Reading $fname"
- regexp {<status>([^<]*)</status>} $xml x status
close $f
close $f
+ if {![regexp {<status>([^<]*)</status>} $xml x status]} {
+ return
+ }
if {$status == "done"} {
puts "already done"
return
if {$status == "done"} {
puts "already done"
return