Skip to content

Commit 8013037

Browse files
skirsdedacyberdelia
authored andcommitted
Don't compare modified time if output file doesn't exists.
Fix for #329.
1 parent 8767d16 commit 8013037

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pipeline/compilers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def read_file(self, path):
8181
return content
8282

8383
def is_outdated(self, infile, outfile):
84+
if not self.storage.exists(outfile):
85+
return True
8486
try:
8587
return self.storage.modified_time(infile) > self.storage.modified_time(outfile)
8688
except (OSError, NotImplementedError):

0 commit comments

Comments
 (0)