Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Aoid cyclic deps for post-list (Issue #1671)
  • Loading branch information
ralsina committed May 1, 2015
1 parent 0b93441 commit a52163f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -18,6 +18,7 @@ Features
Bugfixes
--------

* Avoid recursive dep when using post-list in a post (Issue #1671)
* Encode IDNs to Punycode in ``nikola init`` and in links;
show an error if the site URL is not Punycode (Issue #1644)
* Make ``images`` the default output directory for IMAGE_FOLDERS
Expand Down
1 change: 1 addition & 0 deletions nikola/plugins/compile/rest/__init__.py
Expand Up @@ -104,6 +104,7 @@ def compile_html(self, source, dest, is_two_file=True):
out_file.write(output)
deps_path = dest + '.dep'
if deps.list:
deps.list = [p for p in deps.list if p != dest] #Don't depend on yourself (#1671)
with io.open(deps_path, "w+", encoding="utf8") as deps_file:
deps_file.write('\n'.join(deps.list))
else:
Expand Down

0 comments on commit a52163f

Please sign in to comment.