#573: Fix KeyErrors occurring on rebuild after removing a file.

This commit is contained in:
Georg Brandl
2011-01-07 15:03:59 +01:00
parent b75253dc82
commit 6c36366cc1
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
Release 1.0.7 (in development)
==============================
* #573: Fix KeyErrors occurring on rebuild after removing a file.
* Fix a traceback when removing files with globbed toctrees.
* If an autodoc object cannot be imported, always re-read the

View File

@@ -277,7 +277,8 @@ class Builder(object):
# add all toctree-containing files that may have changed
for docname in list(docnames):
for tocdocname in self.env.files_to_rebuild.get(docname, []):
docnames.add(tocdocname)
if tocdocname in self.env.found_docs:
docnames.add(tocdocname)
docnames.add(self.config.master_doc)
self.info(bold('preparing documents... '), nonl=True)