From ef7e98f545d192db69c946993c34c95521d9f0d4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 Sep 2018 08:59:25 -0700 Subject: [PATCH] Print a line per downloaded crate This commit brings back the old one-line-per-crate output that Cargo's had since the beginning of time but was removed in #6005. This was requested on our [users forum][1] [1]: https://internals.rust-lang.org/t/testing-cargos-parallel-downloads/8466/2 --- src/cargo/core/package.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/core/package.rs b/src/cargo/core/package.rs index c6ec57c3137..25243b83d0e 100644 --- a/src/cargo/core/package.rs +++ b/src/cargo/core/package.rs @@ -540,10 +540,10 @@ impl<'a, 'cfg> Downloads<'a, 'cfg> { }; // If the progress bar isn't enabled then we still want to provide some - // semblance of progress of how we're downloading crates. - if !self.progress.borrow().as_ref().unwrap().is_enabled() { - self.set.config.shell().status("Downloaded", &dl.descriptor)?; - } + // semblance of progress of how we're downloading crates, and if the + // progress bar is enabled this provides a good log of what's happening. + self.progress.borrow_mut().as_mut().unwrap().clear(); + self.set.config.shell().status("Downloaded", &dl.descriptor)?; self.downloads_finished += 1; self.downloaded_bytes += dl.total.get();