The local `save_downloaded_change` — deserialize, verify the hash, save.
(repo: &Repository, hash: &Hash, data: Bytes)
| 1010 | |
| 1011 | /// The local `save_downloaded_change` — deserialize, verify the hash, save. |
| 1012 | fn save_downloaded_change(repo: &Repository, hash: &Hash, data: Bytes) -> Result<(), String> { |
| 1013 | repo.import_change_bytes(hash, &data) |
| 1014 | .map(|_| ()) |
| 1015 | .map_err(|error| format!("Failed to save change: {error}")) |
| 1016 | } |
| 1017 | |
| 1018 | /// The local `import_sidecars` (sidecars.rs) — ingest the pack's |
| 1019 | /// provenance graphs and attestations; warnings collect for the client. |
no test coverage detected