Skip to content

Commit 67c8773

Browse files
committed
Provide transitional support for umu-proton
1 parent 078726d commit 67c8773

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

umu/umu_dl_util.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _fetch_releases() -> List[Tuple[str, str]]:
7171

7272
conn.request(
7373
"GET",
74-
"/repos/Open-Wine-Components/umu-Proton/releases",
74+
"/repos/Open-Wine-Components/umu-proton/releases",
7575
headers={
7676
"Accept": "application/vnd.github+json",
7777
"X-GitHub-Api-Version": "2022-11-28",
@@ -97,7 +97,7 @@ def _fetch_releases() -> List[Tuple[str, str]]:
9797
asset["name"].endswith("sum")
9898
or (
9999
asset["name"].endswith("tar.gz")
100-
and asset["name"].startswith("umu-Proton")
100+
and asset["name"].startswith(("umu-proton", "ULWGL-Proton"))
101101
)
102102
)
103103
and "browser_download_url" in asset
@@ -111,6 +111,8 @@ def _fetch_releases() -> List[Tuple[str, str]]:
111111
break
112112
break
113113
conn.close()
114+
if len(files) != 2:
115+
raise RuntimeError("Failed to get complete information for Proton release")
114116

115117
return files
116118

0 commit comments

Comments
 (0)