Commit 0ed51f71 by David Trowbridge

Merge pull request #543 from davidt/compiler-is_outdated

Fix paths given to compiler.is_outdated.
parents 7198db4b 492fec24
...@@ -31,16 +31,16 @@ class Compiler(object): ...@@ -31,16 +31,16 @@ class Compiler(object):
for compiler in self.compilers: for compiler in self.compilers:
compiler = compiler(verbose=self.verbose, storage=self.storage) compiler = compiler(verbose=self.verbose, storage=self.storage)
if compiler.match_file(input_path): if compiler.match_file(input_path):
output_path = compiler.output_path(input_path, compiler.output_extension)
try: try:
infile = self.storage.path(input_path) infile = self.storage.path(input_path)
except NotImplementedError: except NotImplementedError:
infile = finders.find(input_path) infile = finders.find(input_path)
outfile = compiler.output_path(infile, compiler.output_extension) outfile = compiler.output_path(infile, compiler.output_extension)
outdated = compiler.is_outdated(input_path, output_path) outdated = compiler.is_outdated(infile, outfile)
compiler.compile_file(infile, outfile, compiler.compile_file(infile, outfile,
outdated=outdated, force=force) outdated=outdated, force=force)
return output_path
return compiler.output_path(input_path, compiler.output_extension)
else: else:
return input_path return input_path
......
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