[Python-modules-commits] [sphinx] 11/17: make searchindex generation deterministic
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Wed Mar 2 07:30:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository sphinx.
commit 4cbb7fc79efd57de674aa1cfd1fc3c0603e21969
Author: Val Lorentz <progval at progval.net>
Date: Thu Oct 8 13:58:16 2015 -0700
make searchindex generation deterministic
Forwarded: https://github.com/sphinx-doc/sphinx/pull/2009
Last-Update: 2015-09-03
Patch-Name: reproducible_searchindex.diff
---
sphinx/search/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py
index 9e770c0..e7656e7 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -262,9 +262,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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git
More information about the Python-modules-commits
mailing list