Skip to content
Permalink
Browse files

fix #1968

  • Loading branch information
ralsina committed Aug 24, 2015
1 parent 0c7b362 commit 34509ebf0509c84cdfc32161d7d9c0a496bdd4ef
Showing with 11 additions and 0 deletions.
  1. +6 −0 CHANGES.txt
  2. +5 −0 nikola/post.py
@@ -7,6 +7,12 @@ Features
* New ``TAG_PAGES_TITLES`` and ``CATEGORY_PAGES_TITLES`` options
(Issue #1962)

Bugfixes
--------

* Add dependency on metadata file for 2-file posts (Issue #1968)


New in v7.6.4
=============

@@ -447,11 +447,16 @@ def deps(self, lang):
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)
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)
if os.path.exists(cand_1):
deps.extend([cand_1, cand_2])
cand_3 = get_translation_candidate(self.config, self.metadata_path, lang)
if os.path.exists(cand_3):
deps.append(cand_3)
deps += self._get_dependencies(self._dependency_file_page[lang])
deps += self._get_dependencies(self._dependency_file_page[None])
return sorted(deps)

0 comments on commit 34509eb

Please sign in to comment.