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.
This commit is contained in:
Sebastian Wiesner
2010-04-12 20:14:24 +02:00
parent 90b2b59fca
commit 498193dc21

View File

@@ -158,8 +158,9 @@ def load_mappings(app):
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):