mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: refuse an unknown mame or fbneo version
This commit is contained in:
1 parent
a848730a80
commit
a70ff264d2
3 files changed
+39
-18
No files matched your search
@@ -117,8 +117,11 @@ def _extract_version() -> tuple[str, str]:
|
||||
if t["name"] != "latest" and t["name"].startswith("v"):
|
||||
version = t["name"]
|
||||
break
|
||||
except (urllib.error.URLError, OSError):
|
||||
pass
|
||||
except (urllib.error.URLError, OSError) as exc:
|
||||
raise RuntimeError(f"cannot determine the FBNeo version: {exc}") from exc
|
||||
if version == "unknown":
|
||||
# Written as core_version otherwise, and cached for a day.
|
||||
raise RuntimeError("cannot determine the FBNeo version: no tag, resource.h or release")
|
||||
|
||||
sha_result = subprocess.run(
|
||||
["git", "rev-parse", "HEAD"],
|
||||
|
||||
Reference in new issue
Block a user