Skip to content

Commit 0ed51f7

Browse files
committed
Merge pull request jazzband#543 from davidt/compiler-is_outdated
Fix paths given to compiler.is_outdated.
2 parents 7198db4 + 492fec2 commit 0ed51f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pipeline/compilers/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ def _compile(input_path):
3131
for compiler in self.compilers:
3232
compiler = compiler(verbose=self.verbose, storage=self.storage)
3333
if compiler.match_file(input_path):
34-
output_path = compiler.output_path(input_path, compiler.output_extension)
3534
try:
3635
infile = self.storage.path(input_path)
3736
except NotImplementedError:
3837
infile = finders.find(input_path)
3938
outfile = compiler.output_path(infile, compiler.output_extension)
40-
outdated = compiler.is_outdated(input_path, output_path)
39+
outdated = compiler.is_outdated(infile, outfile)
4140
compiler.compile_file(infile, outfile,
4241
outdated=outdated, force=force)
43-
return output_path
42+
43+
return compiler.output_path(input_path, compiler.output_extension)
4444
else:
4545
return input_path
4646

0 commit comments

Comments
 (0)