Skip to content
Permalink
Browse files

Using config_changed object to take care of compiler.config_dependenc…

…ies list.

Also adding dependency for fragment.
  • Loading branch information
felixfontein committed Jan 18, 2015
1 parent 16fb075 commit d5e59cd5bb4a0e98be20185e71811915f72affc6
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/post.py
@@ -37,6 +37,8 @@
except ImportError:
from urllib.parse import urljoin # NOQA

from . import tools

import dateutil.tz
import lxml.html
import natsort
@@ -414,7 +416,7 @@ def deps_uptodate(self, lang):
deps = []
deps += self._get_dependencies(self._dependency_uptodate_page[lang])
deps += self._get_dependencies(self._dependency_uptodate_page[None])
deps += self.compiler.config_dependencies
deps.add(tools.config_changed({1: sorted(self.compiler.config_dependencies)}, 'nikola.post.Post.deps_uptodate:compiler:' + self.source_path))
return deps

def compile(self, lang):
@@ -471,6 +473,7 @@ def fragment_deps_uptodate(self, lang):
deps = []
deps += self._get_dependencies(self._dependency_uptodate_fragment[lang])
deps += self._get_dependencies(self._dependency_uptodate_fragment[None])
deps.add(tools.config_changed({1: sorted(self.compiler.config_dependencies)}, 'nikola.post.Post.deps_uptodate:compiler:' + self.source_path))
return deps

def is_translation_available(self, lang):

0 comments on commit d5e59cd

Please sign in to comment.
You can’t perform that action at this time.