mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 10:58:52 -06:00
fix: one attention verdict on the profile report
check_freshness rebuilt the profile_sync verdict from single JSON keys and dropped version_warning, version_unread and detection_skipped: a core_version behind its pin and a refused detection both read OK. ProfileReport.attention() now gives every reason with its level, report_to_dict serializes it, freshness maps the levels, and --strict names the kinds it fails on.
This commit is contained in:
1 parent
e146a8f349
commit
5cce11e7d0
5 files changed
+238
-90
No files matched your search
@@ -22,6 +22,7 @@ from profiling import quota, selection
|
||||
from profiling.bump import DEFAULT_CACHE
|
||||
from profiling.flagchecks import refuse_flag_combinations
|
||||
from profiling.realignpass import run_realign
|
||||
from profiling.reports import STRICT_KINDS
|
||||
from profiling.run import emit_reports, read_selected
|
||||
from profiling.sourcepaths import refresh_source_paths
|
||||
from profiling.versioncheck import run_versions
|
||||
@@ -217,9 +218,7 @@ def main() -> None:
|
||||
refresh_source_paths(args, written)
|
||||
if not complete:
|
||||
raise SystemExit(130)
|
||||
if failed or (args.strict and any(
|
||||
report.needs_review() or report.uncheckable() for report in reports
|
||||
)):
|
||||
if failed or (args.strict and any(report.fails(STRICT_KINDS) for report in reports)):
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user