Merge pull request #3446 from ksss/minirake

Fix build error when trace mode
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-10 21:22:00 +09:00
committed by GitHub
+1
View File
@@ -237,6 +237,7 @@ module MiniRake
# Time stamp for file task.
def timestamp
return Time.at(0) unless File.exist?(name)
stat = File::stat(name.to_s)
stat.directory? ? Time.at(0) : stat.mtime
end