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. ...@@ -28,6 +28,7 @@ or just made Pipeline more awesome.
* Denis V Seleznyov <code@xy2.ru> * Denis V Seleznyov <code@xy2.ru>
* Fabian Büchler <fabian.buechler@gmail.com> * Fabian Büchler <fabian.buechler@gmail.com>
* Florent Messa <florent.messa@gmail.com> * Florent Messa <florent.messa@gmail.com>
* Hannes Ljungberg <hannes.ljungberg@gmail.com>
* Idan Zalzberg <idanzalz@gmail.com> * Idan Zalzberg <idanzalz@gmail.com>
* Jannis Leidel <jannis@leidel.info> * Jannis Leidel <jannis@leidel.info>
* Jared Scott <jscott@convertro.com> * Jared Scott <jscott@convertro.com>
......
...@@ -32,11 +32,7 @@ class Compiler(object): ...@@ -32,11 +32,7 @@ class Compiler(object):
if compiler.match_file(input_path): if compiler.match_file(input_path):
output_path = self.output_path(input_path, compiler.output_extension) output_path = self.output_path(input_path, compiler.output_extension)
infile = finders.find(input_path) infile = finders.find(input_path)
outfile = finders.find(output_path)
if outfile is None:
outfile = self.output_path(infile, compiler.output_extension) outfile = self.output_path(infile, compiler.output_extension)
outdated = True
else:
outdated = compiler.is_outdated(input_path, output_path) outdated = compiler.is_outdated(input_path, output_path)
try: try:
compiler.compile_file(infile, outfile, outdated=outdated, force=force) compiler.compile_file(infile, outfile, outdated=outdated, force=force)
......
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