Skip to content
Permalink
Browse files

Merge pull request #1969 from getnikola/fix-1968

fix #1968
  • Loading branch information
Kwpolska committed Aug 24, 2015
2 parents ad3dabf + 82b4a60 commit f4bf7f25b393c489dbac34a016ace9f71ea32511
Showing with 8 additions and 2 deletions.
  1. +3 −2 CHANGES.txt
  2. +5 −0 nikola/post.py
@@ -7,9 +7,10 @@ Features
* New ``TAG_PAGES_TITLES`` and ``CATEGORY_PAGES_TITLES`` options
(Issue #1962)

Bugixes
-------
Bugfixes
--------

* Add dependency on metadata file for 2-file posts (Issue #1968)
* Set UTF-8 charset in Content-Type or text/* and *+xml (Issue #1966)

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 f4bf7f2

Please sign in to comment.