yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [2/2] yetus git commit: YETUS-610. version directory is always created, even when not requested
Date Sat, 14 Jul 2018 00:25:53 GMT
YETUS-610. version directory is always created, even when not requested

Signed-off-by: Sean Busbey <busbey@apache.org>


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 <aw@apache.org>
Authored: Thu Jul 12 17:43:19 2018 -0700
Committer: Allen Wittenauer <aw@apache.org>
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:


Mime
View raw message