fix: count a shared destination once, filled

verify kept the worst verdict on the raw destination, the builder the first one it read. Both now key on the sanitized path and let a declaration that holds a file fill one that finds nothing.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 18:17:28 +02:00
1 parent c63a7e45b1
commit 34c8b925d7
3 files changed
+76 -10

No files matched your search

+5
View File
@@ -964,6 +964,11 @@ def generate_pack(
dedup_key,
existence_discrepancy(file_entry, local_path, platform_display),
)
if file_status.get(dedup_key) == "missing":
# An earlier declaration of this path found nothing; this
# one fills it, as verify counts it.
del file_status[dedup_key]
file_reasons.pop(dedup_key, None)
file_status.setdefault(dedup_key, "ok")
# Emulator-level validation: informational only for platform packs.