Commit Graph
8 Commits
Author SHA1 Message Date
Abdessamad Derraz 9f3fc2e0c1 refactor: read offline from the screen state
The rows asked state.offline while the plan, the estimate and the
result read the environment, kept in step only by the session loop.
tui_offline_only(state) is the one question; the variable only carries
the choice to the runs and the wording.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz 6e0b0724de fix: hold the offline choice in the screen state 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 8fc294ef97 fix: a full drive is an event, not stderr text 2026-11-21 19:51:02 +01:00
Abdessamad Derraz 475dfe0e0a fix: quit, proxy and setup folder read once
A chosen quit is read from the state, so the version note after the
quit line no longer sends it to stdout where the launcher misses it.

The proxy the screen names is the one urllib uses for the list's URL
(scheme variable or system settings, NO_PROXY honoured), recorded in
the ListProblem when the request fails.

The setup screen and the plan format from facts read once (the BIOS
folder of each setup, the retroarch.cfg naming dest), never by a frame
in the thread that reads the keys.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 36d5827b25 fix: read a full drive once when the run ends 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 0e2be04f9c fix: read the folder screen drives once 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 6b597f85a0 refactor: give each installer module one role
The split had pushed each helper down into the lowest module using it.
Names now sit with the concern they belong to (68 modules, 45 before),
each with a one-line docstring saying it, and the import graph stays
acyclic. Statement source and comments moved unchanged: every top-level
statement of install.py keeps an identical ast.dump.
2026-11-18 02:55:56 +01:00
Abdessamad Derraz e9f6fe43a0 refactor: split the installer into a package
install.py held 31,575 lines and 1,370 definitions in one module. Its
source is now installer/, 45 modules by concern, each importing from the
others what it uses, so ruff and mypy read every module on its own.

scripts/build_installer.py joins them back into install.py in import
order, with one block of standard library imports and the zlib and
unicodedata guard. It refuses an import from outside the standard
library, a name two modules define, an import cycle, a renamed import
and an import-time read of a name from a later module. install.py stays
one stdlib-only file for the bootstraps, the launchers and PyPI.

The split was written by a script, statement by statement: every
top-level statement of the old file is in the new one with the same AST.
Two tests that located code by its neighbour now read it by name.
2026-11-18 01:37:28 +01:00