File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,13 @@ void verifyChecksums(String checksum) throws Exception {
201201 var remoteChecksum = findRemoteChecksum (checksum );
202202 if (remoteChecksum .isEmpty ()) {
203203 GitHub .warn ("Checksum not available for: " + uri );
204- return ;
204+ } else {
205+ var remote = remoteChecksum .get ();
206+ GitHub .debug ("Remote checksum: " + remote );
207+ if (cached .equals (remote )) {
208+ return ;
209+ }
205210 }
206-
207- var remote = remoteChecksum .get ();
208- GitHub .debug ("Remote checksum: " + remote );
209- if (cached .equals (remote )) return ;
210211 var message = "Checksum verification failed, deleting cached archive" ;
211212 Files .delete (archive );
212213 GitHub .error (message );
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ static void checkJDK(String website, Download.JDK jdk) {
7979 var head = BROWSER .head (uri );
8080 if (head .statusCode () < 200 || head .statusCode () >= 400 ) ERRORS .add (head .toString ());
8181 System .out .println (head );
82+ System .out .println (" " + BROWSER .browse (uri + ".sha256" ));
8283 } catch (Exception exception ) {
8384 ERRORS .add (jdk + "\n " + exception );
8485 }
You can’t perform that action at this time.
0 commit comments