Display more information with -v

Display release path and comments enabled status with "-v".

Change-Id: I8c99e46a0fb9784a5c89c96c975395b9dc1008d4
This commit is contained in:
Andreas Jaeger 2014-05-10 13:11:28 +02:00
parent 3d61e98305
commit f9cfc13fda
2 changed files with 10 additions and 4 deletions

View File

@ -102,7 +102,8 @@ Release notes
* ``openstack-auto-commands``: Improved screen generation and swift
subcommand xml output.
* ``openstack-doc-tools``: Warn about non-breaking space.
* ``openstack-doc-tools``: Warn about non-breaking space, enhance
-v output.
* New command ``openstack-jsoncheck`` to check for niceness of JSON
files and reformat them.

View File

@ -345,7 +345,7 @@ def check_modified_affects_all(rootdir, verbose):
]
for f in modified_files:
if f in special_files:
if verbose:
if cfg.CONF.verbose:
print("File %s modified, this affects all books." % f)
return True
@ -1209,7 +1209,8 @@ def read_properties():
gerrit_file = os.path.join(get_gitroot(), 'gerrit-doc.properties')
if os.path.isfile(gerrit_file):
if cfg.CONF.verbose:
print(" Reading gerrit-doc.properties")
for line in open(gerrit_file, 'r'):
content = line.strip().split('=')
if len(content) > 1:
@ -1379,6 +1380,11 @@ def handle_options():
print(" Publish dir for %s is %s" %
(CONF.book[i], BOOK_PUBLISH_MAPPINGS[CONF.book[i]]))
if CONF.check_build:
read_properties()
print(" Release path: %s" % cfg.CONF.release_path)
print(" Comments enabled: %s" % cfg.CONF.comments_enabled)
def main():
@ -1429,7 +1435,6 @@ def main():
# Some programs are called in subprocesses, make sure that they
# really exist.
ensure_exists("mvn")
read_properties()
build_affected_books(doc_path, BOOK_EXCEPTIONS,
BUILD_FILE_EXCEPTIONS,
CONF.verbose, CONF.force,