HADOOP-11813. releasedocmaker.py should use today's date instead of unreleased (Darrell Taylor via aw)

(cherry picked from commit f325522c14)
This commit is contained in:
Allen Wittenauer 2015-05-06 10:33:56 -07:00 committed by Andrew Wang
parent 2a0688fdb8
commit fed9f767b1
3 changed files with 11 additions and 3 deletions

View File

@ -18,6 +18,7 @@
from glob import glob
from optparse import OptionParser
from time import gmtime, strftime
import os
import re
import sys
@ -82,6 +83,7 @@ def notableclean(str):
str=str.replace("|","\|")
str=str.replace("<","\<")
str=str.replace(">","\>")
str=str.replace("*","\*")
str=str.rstrip()
return str
@ -335,6 +337,8 @@ def main():
help="only create the master, merged project files")
parser.add_option("-i","--index", dest="index", action="store_true",
help="build an index file")
parser.add_option("-u","--usetoday", dest="usetoday", action="store_true",
help="use current date for unreleased versions")
(options, args) = parser.parse_args()
if (options.versions == None):
@ -356,6 +360,8 @@ def main():
if version in releaseVersion:
reldate=releaseVersion[version]
elif options.usetoday:
reldate=strftime("%Y-%m-%d", gmtime())
else:
reldate="Unreleased"

View File

@ -167,9 +167,10 @@ Release 2.8.0 - UNRELEASED
HADOOP-11958. MetricsSystemImpl fails to show backtrace when an error
occurs (Jason Lowe via jeagles)
HADOOP-12158. Improve error message in
TestCryptoStreamsWithOpensslAesCtrCryptoCodec when OpenSSL is not
installed. (wang)
HADOOP-11813. releasedocmaker.py should use today's date instead of
unreleased (Darrell Taylor via aw)
BUG FIXES
HADOOP-12124. Add HTrace support for FsShell (cmccabe)

View File

@ -812,6 +812,7 @@
<argument>--version</argument>
<argument>${project.version}</argument>
<argument>--index</argument>
<argument>--usetoday</argument>
</arguments>
</configuration>
</execution>