From 68e88965b6ed36bc97c27372aa6c410518af7e1a Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 6 Mar 2014 16:09:19 -0800 Subject: 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 --- pbr/packaging.py | 1 + 1 file changed, 1 insertion(+) 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( -- cgit v1.2.1