Show bpf-tools download progress (#16135)

(cherry picked from commit 07273bfa9e)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-03-25 20:55:11 +00:00
committed by GitHub
parent 5e35cf3536
commit 4dc5a53014

View File

@ -109,7 +109,7 @@ fn install_if_missing(
url.push_str(version);
url.push('/');
url.push_str(file.to_str().unwrap());
download_file(&url.as_str(), &file, false)?;
download_file(&url.as_str(), &file, true)?;
fs::create_dir_all(&target_path).map_err(|err| err.to_string())?;
let zip = File::open(&file).map_err(|err| err.to_string())?;
let tar = BzDecoder::new(BufReader::new(zip));