[Python-modules-commits] [sphinx] 11/12: make searchindex generation deterministic

Dmitry Shachnev mitya57 at moszumanska.debian.org
Mon Jan 25 12:45:57 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 e3eb4d2564a7363dba6afb15e7ced1c952becec6
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 648abd8..75acf25 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -261,9 +261,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