Clear download progress bar to avoid flicker during archive extraction (#6162) (#6176)

(cherry picked from commit 11fc684f3c)
This commit is contained in:
mergify[bot]
2019-09-29 18:56:50 -07:00
committed by Michael Vines
parent 77a4354b93
commit 2cd832521a

View File

@ -129,6 +129,8 @@ fn download_to_temp_archive(
if expected_sha256.is_some() && expected_sha256 != Some(&temp_file_sha256) { if expected_sha256.is_some() && expected_sha256 != Some(&temp_file_sha256) {
Err(io::Error::new(io::ErrorKind::Other, "Incorrect hash"))?; Err(io::Error::new(io::ErrorKind::Other, "Incorrect hash"))?;
} }
source.progress_bar.finish_and_clear();
Ok((temp_dir, temp_file, temp_file_sha256)) Ok((temp_dir, temp_file, temp_file_sha256))
} }