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:
Abdessamad Derraz committed 2026-11-24 00:20:03 +01:00
1 parent 409cc843f9
commit 83e810d1b3
23 files changed
+124 -17

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ on:
- "scripts/core/github.py"
- "scripts/core/hashing.py"
- "scripts/core/memo.py"
- "scripts/core/offline.py"
- "scripts/core/options.py"
- "scripts/core/paths.py"
- "scripts/core/romdir.py"