chore: name the remedy for an unheld pin

This commit is contained in:
Abdessamad Derraz committed 2026-10-22 08:06:29 +02:00
1 parent ccac829b54
commit 3e6da220b8
1 file changed
+6 -1
+6 -1
View File
@@ -133,10 +133,15 @@ class ShippedFilesSatisfyTheirDeclaration(unittest.TestCase):
if not satisfied:
first = candidates[0][1]
algo = sorted(first)[0]
# A core's copy at the path means the builder found no
# file with the pinned bytes and filled the slot for the
# core (generate_pack's core phase): the pin is to acquire.
filled = (" (a core's copy: the pinned file is not held, acquire it)"
if shipped.get("cores") and not shipped.get("systems") else "")
violations.append(
f"{platform}: {shipped['dest']} ships {repo_path} "
f"with {algo} {digests[algo][0]}, declared "
f"{sorted(first[algo])[0]}"
f"{sorted(first[algo])[0]}{filled}"
)
self.assertEqual(
violations, [],