mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
fix: let core.upstream refuse requests offline
RETROBIOS_OFFLINE was read by six callers and never by the network gateway: a caller that did not pass offline=True sent the request, untokened. core.offline holds the rule, open_retrying refuses with OfflineError and the cached reads answer as an offline run. The callers read the same predicate, and the tests that fake the network clear the variable for themselves (tests.ONLINE).
This commit is contained in:
1 parent
409cc843f9
commit
83e810d1b3
23 files changed
+124
-17
No files matched your search
@@ -150,10 +150,7 @@ def _fetched_asset(path: str, sha1: str, file_entry: dict, offline: bool) -> str
|
||||
|
||||
def run_is_offline(offline: bool | None = None) -> bool:
|
||||
"""Whether this run fetches nothing: --offline, or RETROBIOS_OFFLINE."""
|
||||
return bool(
|
||||
(OFFLINE if offline is None else offline)
|
||||
or os.environ.get("RETROBIOS_OFFLINE")
|
||||
)
|
||||
return upstream.run_is_offline(OFFLINE if offline is None else offline)
|
||||
|
||||
|
||||
def release_asset_paths(
|
||||
|
||||
Reference in new issue
Block a user