winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ae586beee03076fcd6238b5df206716116e02093
parent 5f3f9d4cea4c9ad6d0bca52eadea44c5534de6ba
Author: Easton Pillay <easton@planeteaston.com>
Date:   Thu, 13 Jan 2022 16:32:01 -0600

Moved "Installing Dependencies" message to only print if there are dependencies to install. (#1851)


Diffstat:
Msrc/AppInstallerCLICore/Workflows/DependenciesFlow.cpp | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp b/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp @@ -155,8 +155,6 @@ namespace AppInstaller::CLI::Workflow return; } - info << Resource::String::DependenciesFlowInstall << std::endl; - context << OpenDependencySource; if (context.IsTerminated()) { @@ -238,6 +236,11 @@ namespace AppInstaller::CLI::Workflow } } + if (!dependencyPackageContexts.empty()) + { + info << Resource::String::DependenciesFlowInstall << std::endl; + } + // Install dependencies in the correct order context.Add<Execution::Data::PackagesToInstall>(std::move(dependencyPackageContexts)); context << Workflow::InstallMultiplePackages(m_dependencyReportMessage, APPINSTALLER_CLI_ERROR_INSTALL_DEPENDENCIES, {}, false, true);