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

o/snapstate: fix populating of affectedSnapInfo.AffectingSnaps for marking self as affecting #10475

Merged

Conversation

stolowski
Copy link
Contributor

@stolowski stolowski commented Jun 30, 2021

The special case for populating affectedSnapInfo for the snap that gets refreshed and may want to control his own refresh (hold itself) wasn't correct and didn't fill affectingSnaps. As a result, the gate-auto-refresh hook of such snap didn't have affecting-snaps set correctly and --hold or --proceed wouldn't update hold state for itself.

@stolowski stolowski added Refresh control Simple 😃 A small PR which can be reviewed quickly labels Jun 30, 2021
@stolowski stolowski requested a review from pedronis June 30, 2021 10:54
Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Copy link
Contributor

@mardy mardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that line with the double array assignment is a bit complicated, but it looks correct :-)

@pedronis pedronis merged commit 3b78a9b into snapcore:master Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
3 participants