Skip to content

Commit bcfa4cf

Browse files
committed
Remote Bmap file integrity check
Remote copy checks the integrity of the bmap file after downloading it. Signed-off-by: Rafael Garcia Ruiz <[email protected]>
1 parent 063caeb commit bcfa4cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bmap-rs/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ async fn copy_remote_input(source: Url, destination: PathBuf) -> Result<()> {
229229
println!("Found bmap file: {}", bmap_url);
230230

231231
let bmap = Bmap::from_xml(&xml)?;
232+
bmap_integrity(bmap.bmap_file_checksum(), xml)?;
232233
let mut output = tokio::fs::OpenOptions::new()
233234
.write(true)
234235
.create(true)

0 commit comments

Comments
 (0)