diff --git a/src/dist/dist.rs b/src/dist/dist.rs index 228aebefe6..ab01575d2c 100644 --- a/src/dist/dist.rs +++ b/src/dist/dist.rs @@ -731,6 +731,7 @@ fn try_update_from_dist_<'a>( &download, &download.notify_handler, &toolchain.manifest_name(), + true, )? { UpdateStatus::Unchanged => Ok(None), UpdateStatus::Changed => Ok(Some(hash)), diff --git a/src/dist/manifestation.rs b/src/dist/manifestation.rs index a869c592a3..e7c966c4dd 100644 --- a/src/dist/manifestation.rs +++ b/src/dist/manifestation.rs @@ -108,6 +108,7 @@ impl Manifestation { download_cfg: &DownloadCfg<'_>, notify_handler: &dyn Fn(Notification<'_>), toolchain_str: &str, + implicit_modify: bool, ) -> Result { // Some vars we're going to need a few times let temp_cfg = download_cfg.temp_cfg; @@ -168,7 +169,7 @@ impl Manifestation { // Uninstall components for component in &update.components_to_uninstall { - let notification = if altered { + let notification = if implicit_modify { Notification::RemovingOldComponent } else { Notification::RemovingComponent diff --git a/src/toolchain.rs b/src/toolchain.rs index 9c90213cd9..2a8a5070bb 100644 --- a/src/toolchain.rs +++ b/src/toolchain.rs @@ -710,6 +710,7 @@ impl<'a> Toolchain<'a> { &self.download_cfg(), &self.download_cfg().notify_handler, &toolchain.manifest_name(), + false, )?; Ok(()) @@ -763,6 +764,7 @@ impl<'a> Toolchain<'a> { &self.download_cfg(), &self.download_cfg().notify_handler, &toolchain.manifest_name(), + false, )?; Ok(()) diff --git a/tests/dist.rs b/tests/dist.rs index bb86051bd0..df6e09b61e 100644 --- a/tests/dist.rs +++ b/tests/dist.rs @@ -460,6 +460,7 @@ fn update_from_dist( download_cfg, download_cfg.notify_handler, &toolchain.manifest_name(), + true, ) }