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 19, 2023
1 parent afd5c44 commit 1ac7fed
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 @@ -249,6 +249,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 1ac7fed

Please sign in to comment.