-
Notifications
You must be signed in to change notification settings - Fork 5.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
[master] APPX: Fix issue when there are duplicate packages #64535
Conversation
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.
Hey, Fired up couple of VMs I had for testing, and none of them seem to have any duplicates now -.-
I've tried a snapshot restore on one of them, I can see there are duplicates there when its booted, but by the time I manage to copy the patched files, the duplicate is already gone.
But either way, PR is looking good to me. it looks like it will catch this duplicates
What does this PR do?
Fixes an issue where multiple packages match the query for packages to be removed. Some packages can be in a state where they're being updated. In that scenario, two packages with different versions may match the query. One of the packages will be missing the uninstall information as well.
What issues does this PR fix or reference?
Fixes: #64450
Previous Behavior
Stacktrace on duplicate names
Stacktrace when the package is missing AppxManifest.xml
New Behavior
Don't stack trace on multiple matching packages
Log the error and continue if the package is missing the AppxManifest.xml
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes