Commit 4a4a37fb by Hannes Ljungberg

Fix #228 - Compiler was writing new content to files on paths that wasn't…

Fix #228 - Compiler was writing new content to files on paths that wasn't findable by the compressor.
parent 86fe544f
......@@ -28,6 +28,7 @@ or just made Pipeline more awesome.
* Denis V Seleznyov <code@xy2.ru>
* Fabian Büchler <fabian.buechler@gmail.com>
* Florent Messa <florent.messa@gmail.com>
* Hannes Ljungberg <hannes.ljungberg@gmail.com>
* Idan Zalzberg <idanzalz@gmail.com>
* Jannis Leidel <jannis@leidel.info>
* Jared Scott <jscott@convertro.com>
......
......@@ -32,12 +32,8 @@ class Compiler(object):
if compiler.match_file(input_path):
output_path = self.output_path(input_path, compiler.output_extension)
infile = finders.find(input_path)
outfile = finders.find(output_path)
if outfile is None:
outfile = self.output_path(infile, compiler.output_extension)
outdated = True
else:
outdated = compiler.is_outdated(input_path, output_path)
outfile = self.output_path(infile, compiler.output_extension)
outdated = compiler.is_outdated(input_path, output_path)
try:
compiler.compile_file(infile, outfile, outdated=outdated, force=force)
except CompilerError:
......
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