fix: report pending PCB recovery version without obscuring native repair
This commit is contained in:
1 parent
99a708b40c
commit
d76475a1d7
8 files changed
+315
-3
No files matched your search
@@ -205,6 +205,12 @@ def run_existing_address_maintenance(request, *, verify, progress=None):
|
||||
good = verified.status == 'PASS' and verified.library_flag == 'GREEN' and owner_safe
|
||||
recovery.update(status='REPAIRED' if good else 'REPAIR_VALIDATION_FAILED',
|
||||
validation_passed=good, validation_evidence=str(verified.evidence_path or ''))
|
||||
if verified.error_category == 'PCB_VERSION_CHOICE_REQUIRED':
|
||||
owner_safe = False
|
||||
good = False
|
||||
recovery.update(status='PCB_VERSION_CHOICE_REQUIRED', validation_passed=False)
|
||||
verified = replace(verified, safe_to_continue=False,
|
||||
stderr='ICDB原生修复已完成;PCB需选择恢复版本,尚未校验通过。\n' + verified.stderr)
|
||||
return save(replace(verified, status='PASS' if good else 'FAIL',
|
||||
recovery_attempts=(recovery,)))
|
||||
if recovery.get('status') == 'REPAIRED':
|
||||
|
||||
Reference in new issue
Block a user