Skip to content
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

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

twangboy
Copy link
Contributor

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

@twangboy twangboy requested a review from a team as a code owner June 22, 2023 22:16
@twangboy twangboy requested review from MKLeb and removed request for a team June 22, 2023 22:16
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title APPX: Fix issue when there are duplicate packages [master] APPX: Fix issue when there are duplicate packages Jun 22, 2023
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:31 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:31 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:31 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:32 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:51 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 22, 2023 22:55 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:35 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:35 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:35 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:36 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:52 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 23, 2023 19:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 24, 2023 00:50 — with GitHub Actions Inactive
Copy link

@stavros-k stavros-k left a 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

@Ch3LL Ch3LL merged commit 5dc987a into saltstack:master Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] win_appx should handle when a query matches more than 1 items
3 participants