From fac6290c3a0fbbef2ac0e86267cd2c4271fd9b5d Mon Sep 17 00:00:00 2001 From: Kaleb Luedtke Date: Thu, 24 Feb 2022 10:26:48 -0600 Subject: [PATCH] Fix: Only include unknown packages which exist in source --- src/AppInstallerCLICore/Workflows/WorkflowBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp index 75b0054fba..e3d750bd6c 100644 --- a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp +++ b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp @@ -720,7 +720,7 @@ namespace AppInstaller::CLI::Workflow auto latestVersion = match.Package->GetLatestAvailableVersion(); bool updateAvailable = match.Package->IsUpdateAvailable(); - if (m_onlyShowUpgrades && !context.Args.Contains(Execution::Args::Type::IncludeUnknown) && Utility::Version(installedVersion->GetProperty(PackageVersionProperty::Version)).IsUnknown()) + if (m_onlyShowUpgrades && !context.Args.Contains(Execution::Args::Type::IncludeUnknown) && Utility::Version(installedVersion->GetProperty(PackageVersionProperty::Version)).IsUnknown() && updateAvailable) { // We are only showing upgrades, and the user did not request to include packages with unknown versions. unknownPackagesCount++;