Permalink
Browse files

fix getnikola/nikola#966 -- make sass work properly

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information...
Kwpolska committed May 30, 2014
1 parent d71f3d5 commit 6c42838969db5a1377759d448a6e373a5edd9c9c
Showing with 8 additions and 4 deletions.
  1. +8 −4 v7/sass/sass.py
View
@@ -88,10 +88,14 @@ def gen_tasks(self):
base_path = utils.get_theme_path(self.site.THEMES[0])
dst_dir = os.path.join(self.site.config['OUTPUT_FOLDER'], 'assets', 'css')
# Make everything depend on all sources, rough but enough
- deps = glob.glob(os.path.join(
- base_path,
- self.sources_folder,
- *("*{0}".format(ext) for ext in self.sources_ext)))
+ deps = []
+ for ext in self.sources_ext:
+ if os.path.isfile(os.path.join(self.sources_folder, "targets")):
+ deps += glob.glob(os.path.join(kw['cache_folder'], self.sources_folder,
+ '*{0}'.format(ext)))
+ else:
+ deps += glob.glob(os.path.join(base_path, self.sources_folder,
+ '*{0}'.format(ext)))
def compile_target(target, dst):
utils.makedirs(dst_dir)

0 comments on commit 6c42838

Please sign in to comment.