Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #1646 -- check if files exist before adding deps in post-list
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 3, 2015
1 parent 24de93f commit aa74b09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -14,6 +14,8 @@ Features
Bugfixes
--------

* Check if files exists before adding them as post-list dependencies
(Issue #1646)
* Fix build command in ``nikola auto`` (Issue #1641)
* Update Bootstrap to v3.3.4
* Update jquery-colorbox
Expand Down
4 changes: 3 additions & 1 deletion nikola/plugins/compile/rest/post_list.py
Expand Up @@ -171,7 +171,9 @@ def run(self):
if cont:
continue

self.state.document.settings.record_dependencies.add(post.translated_base_path(lang))
bp = post.translated_base_path(lang)
if os.path.exists(bp):
self.state.document.settings.record_dependencies.add(bp)

posts += [post]

Expand Down

0 comments on commit aa74b09

Please sign in to comment.