diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2017-12-12 00:12:45 +0300 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2017-12-12 00:12:45 +0300 |
commit | 1502fbda61240aae8ee799dc67c0536e0a210327 (patch) | |
tree | 2404378f92bf0466c1ce0c6e1c27367a3bf61f9f /sphinx/builders/htmlhelp.py | |
parent | 063bc681b5ffc7a022d26993553a62bf84931b7c (diff) | |
download | sphinx-git-1502fbda61240aae8ee799dc67c0536e0a210327.tar.gz |
Fix for reproducibility of htmlhelp and qthelp builds
Make sure the generated list of files is sorted.
This is similar to what was applied to EPub builder in 0b7c73a981.
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r-- | sphinx/builders/htmlhelp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py index 764b01aae..c2e3bbe2c 100644 --- a/sphinx/builders/htmlhelp.py +++ b/sphinx/builders/htmlhelp.py @@ -246,7 +246,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder): olen = len(outdir) for root, dirs, files in os.walk(outdir): staticdir = root.startswith(path.join(outdir, '_static')) - for fn in files: + for fn in sorted(files): if (staticdir and not fn.endswith('.js')) or \ fn.endswith('.html'): print(path.join(root, fn)[olen:].replace(os.sep, '\\'), |