-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Install flow aware of package installed status #2539
Conversation
Workflow::GetManifestFromArg << | ||
Workflow::SelectInstaller << | ||
Workflow::EnsureApplicableInstaller << | ||
Workflow::InstallSinglePackage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't install from a manifest behave as an upgrade as well (when appropriate)?
Workflow::EnsureApplicableInstaller << | ||
Workflow::CheckForUnsupportedArgs << | ||
Workflow::InstallSinglePackage; | ||
if (context.Args.Contains(Execution::Args::Type::Manifest)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
side note: I've thought that it would be great to collapse the manifest flow into the normal one by making OpenSource
create a simple in-memory source for the manifest so that it could behave exactly as everything else.
@@ -316,7 +316,7 @@ They can be configured through the settings file 'winget settings'.</value> | |||
<comment>Links to different webpages</comment> | |||
</data> | |||
<data name="ListCommandLongDescription" xml:space="preserve"> | |||
<value>The list command displays the packages installed on the system, as well as whether an update is available. Additional options can be provided to filter the output, much like the search command.</value> | |||
<value>The list command displays the packages installed on the system, as well as whether an upgrade is available. Additional options can be provided to filter the output, much like the search command.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update install
command description to include the new behavior of changing to upgrade
?
Workflow::OpenCompositeSource(Repository::PredefinedSource::Installed, false, Repository::CompositeSearchBehavior::AvailablePackages); | ||
} | ||
|
||
context << Workflow::InstallOrUpgradeSinglePackage(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also need to be applied to import
? More specifically, does import
need to be calling InstallOrUpgradeSinglePackage
?
Microsoft Reviewers: Open in CodeFlow