fix problem when LOCAL_VERSION_RELEASE isn't set
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/fe961f83 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/fe961f83 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/fe961f83 Branch: refs/heads/1781-reorganize-and-improve-docs Commit: fe961f83816d3da5d8e03c98ef07b0fc06536454 Parents: 9454b50 Author: Dirkjan Ochtman <[email protected]> Authored: Fri Sep 20 11:52:59 2013 +0200 Committer: Alexander Shorin <[email protected]> Committed: Fri Sep 27 22:01:49 2013 +0400 ---------------------------------------------------------------------- share/doc/src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/fe961f83/share/doc/src/conf.py ---------------------------------------------------------------------- diff --git a/share/doc/src/conf.py b/share/doc/src/conf.py index bfdcd99..f60e545 100644 --- a/share/doc/src/conf.py +++ b/share/doc/src/conf.py @@ -51,7 +51,7 @@ release = '.'.join([ _info['LOCAL_VERSION_REVISION'] ]) + ( _info['LOCAL_VERSION_STAGE'] + '' + _info['LOCAL_VERSION_RELEASE'] - if _info['LOCAL_VERSION_RELEASE'] == '%revision%' + if _info.get('LOCAL_VERSION_RELEASE') == '%revision%' else '-dev' )
