Commits

Georg Brandl  committed d9a1814

Closes #1283: Fix a bug in the detection of changed files that would try to access doctrees of deleted documents.

  • Participants
  • Parent commits 67bc846
  • Branches stable

Comments (0)

Files changed (2)

 
 * #1300: Fix references not working in translated documents in some instances.
 
+* #1283: Fix a bug in the detection of changed files that would try to access
+  doctrees of deleted documents.
+
 Documentation
 -------------
 

File sphinx/builders/__init__.py

                 self.info(bold('no targets are out of date.'))
                 return
 
+        # filter "docnames" (list of outdated files) by the updated
+        # found_docs of the environment; this will remove docs that
+        # have since been removed
+        if docnames != ['__all__']:
+            docnames = set(docnames) & self.env.found_docs
+
         # another indirection to support builders that don't build
         # files individually
         self.write(docnames, list(updated_docnames), method)
             docnames = set(build_docnames) | set(updated_docnames)
         else:
             docnames = set(build_docnames)
+        self.app.debug('docnames to write: %s', ', '.join(sorted(docnames)))
 
         # add all toctree-containing files that may have changed
         for docname in list(docnames):