Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup .queued file when write out image.

git-svn-id: svn+ssh://svn.nemui.org/home/sugi/data/svnroot/mozshot/trunk@166 8f797353-fa07-0410-9347-d4c221381513
  • Loading branch information...
commit 3acb2ced99056112f6ad65a402dd894fb4587a37 1 parent 9ec016a
sugi authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 utils/flush-result.rb
View
8 utils/flush-result.rb
@@ -58,10 +58,14 @@
begin
File.rename(shot.cache_path+".tmp", shot.cache_path)
puts "write: #{shot.cache_path} (#{ret[:req][:uri]})"
+ begin
+ File.unlink shot.cache_path + ".queued"
+ rescue Errno::ENOENT
+ # ignore
+ end
write_count += 1
end
}
puts "complete: wrote out #{write_count} images."
-# vim: set sw=2:
-# vim: set sts=2:
+# vim: set sw=2 sts=2 expandtab:
Please sign in to comment.
Something went wrong with that request. Please try again.