Mod merge: a carried asset with no package fails alone

A carried asset whose install chunk no package names fails when it is carried, and is noted, as it was before it was written once; it no longer fails the whole merge when it settles.
This commit is contained in:
worthlessnorms committed 2026-10-16 11:02:15 -05:00
1 parent b981813ec8
commit 5ef0e64e02
1 file changed
+2
+2
View File
@@ -91,6 +91,8 @@ CasStore CasStore::waiting() const {
fb::BundleFileInfo CasStore::carry(std::uint32_t installChunk, std::uint16_t archive, std::span<const std::byte> encoded) {
if (!waiting_) throw std::logic_error("Only a waiting store carries payloads");
// An install chunk no package names fails here, for this payload alone, and not when it settles.
(void)archive_path(installChunk, archive);
const std::pair key{installChunk, sha1_of(encoded)};
const auto [found, fresh] = carriedIndex_.try_emplace(key, carried_.size());
if (fresh) carried_.push_back({installChunk, archive, key.second, encoded, {}});