Make searchindex generation deterministic.

This commit is contained in:
Valentin Lorentz 2015-08-30 21:23:28 +02:00
parent f5ae89af15
commit 9caa4b05f7

View File

@ -275,9 +275,9 @@ class IndexBuilder(object):
rv = {}
otypes = self._objtypes
onames = self._objnames
for domainname, domain in iteritems(self.env.domains):
for domainname, domain in sorted(iteritems(self.env.domains)):
for fullname, dispname, type, docname, anchor, prio in \
domain.get_objects():
sorted(domain.get_objects()):
# XXX use dispname?
if docname not in fn2index:
continue