fix: let a proven claim answer an unmatched pin

This commit is contained in:
Abdessamad Derraz committed 2026-10-16 20:05:54 +02:00
1 parent 598c930771
commit 3e14c9df1f
5 files changed
+41 -19

No files matched your search

+12
View File
@@ -703,6 +703,18 @@ class AnArchiveIsClaimedByItsMembers(unittest.TestCase):
conflicts = slots.find_conflicts(config, self.profiles, self.db, "system")
self.assertEqual([c.destination for c in conflicts], ["system/fbneo/neocdz.zip"])
def test_a_pin_nobody_holds_yields_where_only_the_path_is_checked(self):
"""RetroArch's root neocdz.zip pins an md5 no local file has: the
name answered with the short copy, and no claim was ever compared."""
config = self._config("existence", "short")
config["systems"]["snk-neogeo-cd"]["files"][0].update(
destination="neocdz.zip", md5="f" * 32
)
overrides = slots.pack_overrides(config, self.profiles, self.db)
self.assertEqual(overrides, {"system/neocdz.zip": self.paths["full"][0]})
config["verification_mode"] = "md5"
self.assertEqual(slots.find_conflicts(config, self.profiles, self.db, "system"), [])
def test_a_pin_holding_the_members_is_agreement(self):
config = self._config("md5", "full")
self.assertEqual(slots.find_conflicts(config, self.profiles, self.db, "system"), [])