python-pbr/0001-use-get_boolean_option-for-warnerrors.patch
Denisart Benjamin b7538471ce Accepting request 258645 from Cloud:OpenStack:Master
- add 0001-Allow-overwriting-sphinx-builder-list-from-command-l.patch
  0001-use-get_boolean_option-for-warnerrors.patch

OBS-URL: https://build.opensuse.org/request/show/258645
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=22
2014-10-29 17:19:48 +00:00

29 lines
978 B
Diff

From 2a31f03dc32a7f07059d3e4e3f918474c4af2669 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Thu, 28 Aug 2014 12:28:15 +0200
Subject: [PATCH] use get_boolean_option for warnerrors
This way even warnerrors = 0 is handled properly.
Change-Id: I83d2eb105d07fd65ebc720c63038fc3c542b7f90
---
pbr/packaging.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbr/packaging.py b/pbr/packaging.py
index a57b453..0f31950 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -750,7 +750,7 @@ try:
self.project = self.distribution.get_name()
self.version = self.distribution.get_version()
self.release = self.distribution.get_version()
- if 'warnerrors' in option_dict:
+ if get_boolean_option(option_dict, 'warnerrors', 'WARNERRORS'):
self._sphinx_run()
else:
setup_command.BuildDoc.run(self)
--
2.0.4