winget-cli

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

commit 647b28579be6361aa9bf59431c0874e5d52e2558
parent 015c9e32fdfe9d28bc99fe7f6a35f1fc1f239a54
Author: Kaleb Luedtke <jluedtk@jci.com>
Date:   Thu, 24 Feb 2022 16:41:34 -0600

Fix: Only include unknown packages which exist in source (#1972)


Diffstat:
Msrc/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 @@ -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++;