From ae586beee03076fcd6238b5df206716116e02093 Mon Sep 17 00:00:00 2001 From: Easton Pillay Date: Thu, 13 Jan 2022 16:32:01 -0600 Subject: [PATCH] Moved "Installing Dependencies" message to only print if there are dependencies to install. (#1851) --- src/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 index 40efcaf708..075de6f6f0 100644 --- 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(std::move(dependencyPackageContexts)); context << Workflow::InstallMultiplePackages(m_dependencyReportMessage, APPINSTALLER_CLI_ERROR_INSTALL_DEPENDENCIES, {}, false, true);