From bcfa4cf96805e8eb532974c59cb35397137997af Mon Sep 17 00:00:00 2001 From: Rafael Garcia Ruiz Date: Wed, 21 Dec 2022 10:28:14 +0100 Subject: [PATCH] Remote Bmap file integrity check Remote copy checks the integrity of the bmap file after downloading it. Signed-off-by: Rafael Garcia Ruiz --- bmap-rs/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bmap-rs/src/main.rs b/bmap-rs/src/main.rs index 4f169ed..f6298ad 100644 --- a/bmap-rs/src/main.rs +++ b/bmap-rs/src/main.rs @@ -229,6 +229,7 @@ async fn copy_remote_input(source: Url, destination: PathBuf) -> Result<()> { println!("Found bmap file: {}", bmap_url); let bmap = Bmap::from_xml(&xml)?; + bmap_integrity(bmap.bmap_file_checksum(), xml)?; let mut output = tokio::fs::OpenOptions::new() .write(true) .create(true)