Use installed version for package disambiguation #1951
Labels
Area-Matching
Issue related to correlation between installed package and manifest
Issue-Feature
This is a feature request for the Windows Package Manager client.
Description of the new feature / enhancement
I'm not sure if this is a bug or a new feature, since I see some stuff happening with versions in the logs. I'm marking it as a feature for now, under the presumption that providing the user expectation of how it functions will lead to more meaningful triage and discussion.
There are times when multiple matching packages are found, especially during upgrade or export.
One of the best examples of this is
OBSProject.OBSStudio
andOBSProject.OBSStudio.Pre-release
I've captured the logs of upgrade and export here
While we are waiting for #147 OBS Studio has been split into these separate packages, as have many others. The key factor here is that there are no matching versions in these two packages.
I currently have version 27.1.3 installed on my system. Given that this version does not exist in
OBSProject.OBSStudio.Pre-release
, this should be a disambiguating factor which clearly points to which of the two packages I have installedProposed technical implementation details
If multiple matches are found for a package, get the current version the user has installed. I'll refer to this as
INSALLED_VERSION
for clarity.INSTALLED_VERSION
is unknown, do not disambiguate by versionINSTALLED_VERSION
does not exist for any matching package identifier, do not disambiguate by versionINSTALLED_VERSION
exists in more than one matching package identifier, do not disambiguate by versionINSTALLED_VERSION
exists in exactly one package identifier, ensure that the disambiguation is valid, and then select the matching package identifier as correct; A warning to the user may be appropriate, to cover the edge case where the source may be missing a versionThe text was updated successfully, but these errors were encountered: