Skip to content
Permalink
Browse files

Always including base post as dependency.

  • Loading branch information
felixfontein committed May 4, 2018
1 parent e7bfb3a commit dbf59f87743508c7580979889cbe1e2f72a78c84
Showing with 4 additions and 5 deletions.
  1. +4 −5 nikola/post.py
@@ -587,11 +587,10 @@ def _get_dependencies(self, deps_list):
def deps(self, lang):
"""Return a list of file dependencies to build this post's page."""
deps = []
if self.default_lang in self.translated_to:
deps.append(self.base_path)
deps.append(self.source_path)
if os.path.exists(self.metadata_path):
deps.append(self.metadata_path)
deps.append(self.base_path)
deps.append(self.source_path)
if os.path.exists(self.metadata_path):
deps.append(self.metadata_path)
if lang != self.default_lang:
cand_1 = get_translation_candidate(self.config, self.source_path, lang)
cand_2 = get_translation_candidate(self.config, self.base_path, lang)

0 comments on commit dbf59f8

Please sign in to comment.