diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 09c02c9..26dfc4a 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -64,7 +64,7 @@ module Rbpkg
file = "#{name}.status"
if ! status[name] || ! FileUtils.uptodate?(file, [subdir_file])
FileUtils.cp(subdir_file, file)
- FileUtils.touch(file, mtime: subdir_file.mtime)
+ FileUtils.touch(file, mtime: File.mtime(subdir_file))
case s = File.read(file).strip
when "running"
status[name] = :running