Skip to content

Commit

Permalink
Fix: Only include unknown packages which exist in source (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly authored Feb 24, 2022
1 parent 015c9e3 commit 647b285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppInstallerCLICore/Workflows/WorkflowBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 647b285

Please sign in to comment.