diff --git a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp index 3d998125ec..14603ae67b 100644 --- a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp +++ b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp @@ -658,6 +658,8 @@ namespace AppInstaller::CLI::Workflow }); int availableUpgradesCount = 0; + auto &source = context.Get(); + bool shouldShowSource = source->IsComposite() && source->GetAvailableSources().size() > 1; for (const auto& match : searchResult.Matches) { @@ -690,7 +692,7 @@ namespace AppInstaller::CLI::Workflow match.Package->GetProperty(PackageProperty::Id), installedVersion->GetProperty(PackageVersionProperty::Version), availableVersion, - sourceName + shouldShowSource ? sourceName : ""s }); } }