changes-to-html: fix for missing 2.0.0 release date in Lucene CHANGES (and other X.0.0 releases)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2015-02-25 17:48:07 +00:00
parent 8cfb3a9398
commit 0d19e1da43
1 changed files with 3 additions and 1 deletions

View File

@ -804,7 +804,9 @@ sub get_release_date {
# Handle '1.2 RC6', which should be '1.2 final'
$release = '1.2 final' if ($release eq '1.2 RC6');
$release =~ s/\.0\.0/\.0/;
if (not exists($release_dates{$release})) {
$release =~ s/\.0\.0/\.0/;
}
$reldate = ( exists($release_dates{$release})
? $release_dates{$release}