summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2014-03-06 16:09:19 -0800
committerClark Boylan <clark.boylan@gmail.com>2014-03-06 16:11:13 -0800
commit68e88965b6ed36bc97c27372aa6c410518af7e1a (patch)
tree3eab020e301a76382a187110dd1d19e37435d790
parent01b12f879060509c514d072b863716d30db4ca0e (diff)
downloadpbr-68e88965b6ed36bc97c27372aa6c410518af7e1a.tar.gz
Init sphinx config values before accessing them.
Sphinx's config object needs to have its values initialized with init_values for the values to be loaded from _raw_config into config. Without this pbr gets null equivalent values from Sphinx's config. These null values prevented man pages from being built when Sphinx warnerrors is set. Fix this. Change-Id: I0f17ca6eff036a0bcc6686fcc3f4efe0830cc585
-rw-r--r--pbr/packaging.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index a79af8c..c39f5f7 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -694,6 +694,7 @@ try:
if self.today:
confoverrides['today'] = self.today
sphinx_config = config.Config(self.config_dir, 'conf.py', {}, [])
+ sphinx_config.init_values()
if self.builder == 'man' and len(sphinx_config.man_pages) == 0:
return
app = application.Sphinx(