YETUS-610. version directory is always created, even when not requested Signed-off-by: Sean Busbey <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/cbcbc0ff Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/cbcbc0ff Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/cbcbc0ff Branch: refs/heads/master Commit: cbcbc0ff3cd75a36aa2deebb97523b0c8dcd1571 Parents: a8f37e0 Author: Allen Wittenauer <[email protected]> Authored: Thu Jul 12 17:43:19 2018 -0700 Committer: Allen Wittenauer <[email protected]> Committed: Fri Jul 13 17:10:36 2018 -0700 ---------------------------------------------------------------------- release-doc-maker/releasedocmaker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/cbcbc0ff/release-doc-maker/releasedocmaker.py ---------------------------------------------------------------------- diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py index 46813cd..3700d71 100755 --- a/release-doc-maker/releasedocmaker.py +++ b/release-doc-maker/releasedocmaker.py @@ -694,7 +694,6 @@ def main(): if options.output_directory is not None: # Create the output directory if it does not exist. - # Equivalent to `mkdir -p`. try: os.makedirs(options.output_directory) except OSError as exc: @@ -756,7 +755,7 @@ def main(): else: reldate = "Unreleased (as of %s)" % strftime("%Y-%m-%d", gmtime()) - if not os.path.exists(vstr): + if not os.path.exists(vstr) and options.versiondirs: os.mkdir(vstr) if options.versionfiles and options.versiondirs:
