mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 11:58:53 -06:00
refactor: one refusal path to stderr and events
Library functions printed their refusal and exited, each deciding on its own whether --events got an error event. --cores-dir, --installed-cores with no core, a list without system_cores or standalone_builds, a pack that cannot be used, a board list a run needs and --dest alone beside two setups ended on code 1 with no reason in the stream. They now raise Refusal (installer/refusal.py), carrying the stage, the reason, the platform, the lines and the code. The install, an action framed by events and main report it once: the error event, then the same lines on stderr, so the text and exit codes stay as they were.
This commit is contained in:
1 parent
ced68a9135
commit
eba627aa89
20 files changed
+542
-402
No files matched your search
@@ -27,8 +27,8 @@
|
||||
{
|
||||
"dest": "roms/ports/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1462574,
|
||||
"sha256": "f0ecb3333aecd54fd0195ff5735f68e17da2979abc142dfdeafecde6cfe89201",
|
||||
"size": 1465384,
|
||||
"sha256": "ed45f61685e87ea272a58178321d4fefb4421e556404e14e36381b023cf191fa",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -71,8 +71,8 @@
|
||||
"muos": {
|
||||
"archive": {
|
||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||
"size": 1516199,
|
||||
"sha256": "69accbadbd356f458ef29ae77bbea45697a361e62c6b9ede5e157271058919f4"
|
||||
"size": 1519009,
|
||||
"sha256": "de8c0baf1dc070332235391e2ea42159337d79eff9adf796cbf2bd8c676b3aa7"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
@@ -92,8 +92,8 @@
|
||||
{
|
||||
"name": "RetroBIOS/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1462574,
|
||||
"sha256": "f0ecb3333aecd54fd0195ff5735f68e17da2979abc142dfdeafecde6cfe89201",
|
||||
"size": 1465384,
|
||||
"sha256": "ed45f61685e87ea272a58178321d4fefb4421e556404e14e36381b023cf191fa",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -166,8 +166,8 @@
|
||||
{
|
||||
"dest": ".config/modules/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1462574,
|
||||
"sha256": "f0ecb3333aecd54fd0195ff5735f68e17da2979abc142dfdeafecde6cfe89201",
|
||||
"size": 1465384,
|
||||
"sha256": "ed45f61685e87ea272a58178321d4fefb4421e556404e14e36381b023cf191fa",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user