Skip to content

Commit

Permalink
Fix strings in java
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Nov 3, 2022
1 parent d32e03d commit f91fe2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions umake/frameworks/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def complete_download_url(self, result):
logger.error("Download page changed its syntax or is not parsable")
UI.return_main_screen(status_code=1)

self.download_page = f"https://api.adoptopenjdk.net/v3/assets/latest/{}/{}".format(version, self.jvm_impl)
self.download_page = "https://api.adoptopenjdk.net/v3/assets/latest/{}/{}".format(version, self.jvm_impl)
# Check download page, or revert to previous version
if requests.get(self.download_page).json() == []:
self.download_page = f"https://api.adoptopenjdk.net/v3/assets/latest/{}/{}".format(version_prev,
self.jvm_impl)
self.download_page = "https://api.adoptopenjdk.net/v3/assets/latest/{}/{}".format(version_prev,
self.jvm_impl)
DownloadCenter([DownloadItem(self.download_page)], self.get_metadata_and_check_license, download=False)

def parse_download_link(self, line, in_download):
Expand Down

0 comments on commit f91fe2d

Please sign in to comment.