Commit 80130373 by Tadas Dailyda Committed by Timothée Peignier

Don't compare modified time if output file doesn't exists.

Fix for #329.
parent 8767d16a
......@@ -81,6 +81,8 @@ class CompilerBase(object):
return content
def is_outdated(self, infile, outfile):
if not self.storage.exists(outfile):
return True
try:
return self.storage.modified_time(infile) > self.storage.modified_time(outfile)
except (OSError, NotImplementedError):
......
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