Skip to content

Commit

Permalink
Provide transitional support for umu-proton
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Mar 21, 2024
1 parent 078726d commit 67c8773
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions umu/umu_dl_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _fetch_releases() -> List[Tuple[str, str]]:

conn.request(
"GET",
"/repos/Open-Wine-Components/umu-Proton/releases",
"/repos/Open-Wine-Components/umu-proton/releases",
headers={
"Accept": "application/vnd.github+json",
"X-GitHub-Api-Version": "2022-11-28",
Expand All @@ -97,7 +97,7 @@ def _fetch_releases() -> List[Tuple[str, str]]:
asset["name"].endswith("sum")
or (
asset["name"].endswith("tar.gz")
and asset["name"].startswith("umu-Proton")
and asset["name"].startswith(("umu-proton", "ULWGL-Proton"))
)
)
and "browser_download_url" in asset
Expand All @@ -111,6 +111,8 @@ def _fetch_releases() -> List[Tuple[str, str]]:
break
break
conn.close()
if len(files) != 2:
raise RuntimeError("Failed to get complete information for Proton release")

Check failure on line 115 in umu/umu_dl_util.py

View workflow job for this annotation

GitHub Actions / build (3.10)

Ruff (EM101)

umu/umu_dl_util.py:115:28: EM101 Exception must not use a string literal, assign to variable first

Check failure on line 115 in umu/umu_dl_util.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (EM101)

umu/umu_dl_util.py:115:28: EM101 Exception must not use a string literal, assign to variable first

Check failure on line 115 in umu/umu_dl_util.py

View workflow job for this annotation

GitHub Actions / build (3.12)

Ruff (EM101)

umu/umu_dl_util.py:115:28: EM101 Exception must not use a string literal, assign to variable first

return files

Expand Down

0 comments on commit 67c8773

Please sign in to comment.