Skip to content

Commit

Permalink
Remote Bmap file integrity check
Browse files Browse the repository at this point in the history
Remote copy checks the integrity of the bmap file after downloading it.

Signed-off-by: Rafael Garcia Ruiz <[email protected]>
  • Loading branch information
Razaloc committed Jan 13, 2023
1 parent 063caeb commit bcfa4cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bmap-rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcfa4cf

Please sign in to comment.