1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-27 17:20:06 +08:00

add verify integrity fail branch

This commit is contained in:
2019-08-22 08:25:07 +08:00
parent 797970f079
commit 51bc8f0ab6

View File

@@ -268,6 +268,8 @@ pub fn get_and_extract_tool_package(base_dir: &str, dir_with_name: bool, name: &
print_message(MessageType::INFO, &format!("Start verify integrity: {} ...", &target_file_name));
if local_util::verify_file_integrity(&integrity.to_string(), &target_file_name)? {
print_message(MessageType::OK, "Verify integrity success.");
} else {
return Err(new_box_error(&format!("Verify integrity failed!")));
}
print_message(MessageType::INFO, &format!("Start extract file: {}", &target_file_name));