make script execution fail if rest api is inaccessible

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1134995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2011-06-12 22:13:26 +00:00
parent 84c10b766b
commit 3887e4bb91
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ sub setup_release_dates {
'2.4.0' => '2008-10-06', '2.4.1' => '2009-03-09', '2.4.0' => '2008-10-06', '2.4.1' => '2009-03-09',
'2.9.0' => '2009-09-23', '2.9.1' => '2009-11-06', '2.9.0' => '2009-09-23', '2.9.1' => '2009-11-06',
'3.0.0' => '2009-11-25'); '3.0.0' => '2009-11-25');
my $project_info_json = get($project_info_url); my $project_info_json = get($project_info_url) || die "Unable to download $project_info_url";
my $project_info = json2perl($project_info_json); my $project_info = json2perl($project_info_json);
for my $version (@{$project_info->{versions}}) { for my $version (@{$project_info->{versions}}) {
if ($version->{releaseDate}) { if ($version->{releaseDate}) {