Permalink
Browse files

(blindly) apply fixes from getnikola/nikola#966 (6c42838)

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information...
1 parent 6c42838 commit 0db685b21b76f48a55917171806430b2c58ab051 @Kwpolska Kwpolska committed May 30, 2014
Showing with 7 additions and 4 deletions.
  1. +7 −4 v7/less/less.py
View
@@ -84,10 +84,13 @@ 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(self.sources_ext)))
+ deps = []
+ 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(self.sources_ext)))
+ else:
+ deps += glob.glob(os.path.join(base_path, self.sources_folder,
+ '*{0}'.format(self.sources_ext)))
def compile_target(target, dst):
utils.makedirs(dst_dir)

0 comments on commit 0db685b

Please sign in to comment.