Commits

Anonymous committed 878d843

Fixed inventory updates in interlinks extension, now really includes all
interlinks. If .update() is used on intersphinx_inventory directly, the
"last" cache entry overwrites all previous inventory entries. Instead,
update dictinaries for different types separately.

  • Participants
  • Parent commits c9ffc9d

Comments (0)

Files changed (1)

File sphinx/ext/intersphinx.py

     if update:
         env.intersphinx_inventory = {}
         for _, invdata in cache.itervalues():
-            if invdata:
-                env.intersphinx_inventory.update(invdata)
+            for type, objects in invdata.iteritems():
+                env.intersphinx_inventory.setdefault(
+                    type, {}).update(objects)
 
 
 def missing_reference(app, env, node, contnode):