diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index e55958c..ee41d0b 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -63,17 +63,22 @@ module Rbpkg
file = "#{name}.status"
if ! status[name] || ! FileUtils.uptodate?(file, [subdir_file])
FileUtils.cp(subdir_file, file)
- case File.read(file).strip
+ case s = File.read(file).strip
when "running"
status[name] = :running
+ verbose(3, "status[#{name.inspect}] = :running")
when "ko"
if status[name] != :running
status[name] = :ko
+ verbose(3, "status[#{name.inspect}] = :ko")
end
when "ok"
if ! status[name]
status[name] = :ok
+ verbose(3, "status[#{name.inspect}] = :ok")
end
+ else
+ raise "unknown status: #{s}"
end
end
end