We need to make an entry entry in the bundles notes array even if the
hash is missing. Or we might try to reuse the bundle number, if there
was a failed bundle upload followed by a server restart.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
};
let iu: usize = parsed.index().into();
+ ib.bundles.get_or_extend_with(iu, default);
+
let hash = match ig.bundle_hashes.hashes.get(iu) {
Some(Some(hash)) => hash,
_ => {
}
};
- ib.bundles.get_or_extend_with(parsed.index().into(), default);
-
if_let!{ BundleSavefile::Bundle(id) = parsed;
else continue; }