Skip to content

Commit

Permalink
Check file exists before trying to parse version
Browse files Browse the repository at this point in the history
  • Loading branch information
code-disaster committed Aug 6, 2017
1 parent 879d383 commit 5156e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/genutil.py
Expand Up @@ -79,11 +79,11 @@ def isDirty(version, inputs, outputs) :
:returns: True if at least one output file is 'dirty'
'''
for output in outputs :
if not os.path.exists(output):
return True
if version :
if fileVersionDirty(output, version) :
return True
if not os.path.exists(output):
return True
outputTime = os.path.getmtime(output)
for input in inputs :
inputTime = os.path.getmtime(input)
Expand Down

0 comments on commit 5156e13

Please sign in to comment.