Commit a562b124 authored by Ian Wienand's avatar Ian Wienand

Fix builddoc with sphinx <= 1.6

I went to build infra-specs which specifies sphinx==1.5.6 and hit

 Traceback (most recent call last):
   File "", line 29, in <module>
  File ".../pbr/", line 235, in run
  File ".../pbr/", line 162, in _sphinx_run
    freshenv=self.fresh_env, warningiserror=self.warning_is_error)
  File ".../sphinx/", line 244, in __init__
  File "...//sphinx/", line 311, in _init_builder
    raise SphinxError('Builder name %s not registered' % buildername)
 sphinx.errors.SphinxError: Builder name h not registered

It appears to be a typo introduced with
I18bbf693bca2f6e49d822ae2940d2170a2b90ce9; make sure we're walking the list; not the string self.builder.

Change-Id: Ic038029c361b3ede48f2b495c74430d3ad1eab82
parent 7767c44a
......@@ -228,7 +228,7 @@ class LocalBuildDoc(setup_command.BuildDoc):
# Sphinx < 1.6
for builder in self.builder:
for builder in
self.builder = builder
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment