From 789f97e99c5f2aaf88749b600b871b5151a11263 Mon Sep 17 00:00:00 2001 From: Anna Babu Palathingal <148897727+annaibm@users.noreply.github.com> Date: Fri, 24 May 2024 13:44:23 -0400 Subject: [PATCH] adding retrying option --- scripts/getDependencies.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/getDependencies.pl b/scripts/getDependencies.pl index 8e9cd51c..ec5ee2ea 100644 --- a/scripts/getDependencies.pl +++ b/scripts/getDependencies.pl @@ -363,6 +363,9 @@ $digest = $sha->hexdigest; if ($digest ne $expectedsha) { + $url = $jars_info[$i]{url}; + print "Retrying: Downloading with url: $url \n"; + downloadFile($url,$filename) print "Expected sha is: $expectedsha,\n"; print "Actual sha is : $digest.\n"; print "Please delete $filename and rerun the program!";