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

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Jan 14 15:59:26 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 042799fd684c6095a6dc57db17a99edd4201212a
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 d83d1f6..ba25497 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