Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #1968
  • Loading branch information
ralsina committed Aug 24, 2015
1 parent 0c7b362 commit 34509eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Expand Up @@ -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
=============

Expand Down
5 changes: 5 additions & 0 deletions nikola/post.py
Expand Up @@ -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)
Expand Down

0 comments on commit 34509eb

Please sign in to comment.