Commit c802cd07 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3446 from ksss/minirake

Fix build error when trace mode
parents 0dc26f52 cd8284fe
...@@ -237,6 +237,7 @@ module MiniRake ...@@ -237,6 +237,7 @@ module MiniRake
# Time stamp for file task. # Time stamp for file task.
def timestamp def timestamp
return Time.at(0) unless File.exist?(name)
stat = File::stat(name.to_s) stat = File::stat(name.to_s)
stat.directory? ? Time.at(0) : stat.mtime stat.directory? ? Time.at(0) : stat.mtime
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment