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
@@ -246,7 +246,7 @@ def _fetch_asset(
|
||||
# shared cache filled the runner's disk and changed what later tests
|
||||
# resolved. Decided once, so the release check of a cached copy obeys it
|
||||
# as the download does.
|
||||
offline = offline or bool(os.environ.get("RETROBIOS_OFFLINE"))
|
||||
offline = upstream.run_is_offline(offline)
|
||||
cached = os.path.join(dest_dir, name)
|
||||
# Between the existence test and the hash, a concurrent run can drop the
|
||||
# same stale entry: the file is gone by the time this one reads it, and
|
||||
|
||||
Reference in new issue
Block a user