-
-
Notifications
You must be signed in to change notification settings - Fork 423
transaction: Ignore uninstall operations for no deploy #5289
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
Conversation
I don't know if this is the best way to address this. 2 other ways I considered:
Let me know if you think either of those options seemed better. |
5cfb847
to
cfa103f
Compare
I think this will also fix #5171 |
Ping? |
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.
I am not a Flatpak committer but this LGTM
Not reviewing this myself, sorry - I mostly deal with the sandboxing part of Flatpak rather than the package-management part. But perhaps @mwleeds or @alexlarsson can help? |
The changes look good to me, and I agree with your reasoning about the other two approaches considered. I’m also not really a flatpak committer, though, so don’t feel like I can merge it. On the other hand, this is a moderately big bug which needs fixing (because of its combination with eol-rebase and the typical no-deploy/no-pull split of applying flatpak updates via gnome-software), so if nobody else with a bigger flatpak maintainer hat comments in the next couple of weeks, I’d be minded to go ahead and merge. |
We have also just merged a backport of this in Endless OS, so it will get some real-world testing there, which should (hopefully) give confidence in a future upstream merge of this PR. |
If `no_deploy` has been set to `TRUE` in a transaction, then the intention is that no changes will be made to the installed flatpaks. Currently that's not the case for explicitly or implicitly added uninstall operations. That's particularly bad for eol-rebase flatpaks since they old version will be automatically removed without the new version being installed. To address this, prevent uninstall operations from being added for no deploy transactions. Closes: flatpak#5172
cfa103f
to
54c5771
Compare
To the best of my ability, this looks good, but again I'm not really so familiar with the package-management side of Flatpak. Based on how sure the Endless team are about this, I'm going to land it in 1.15.x, but not cherry-pick to 1.14.x straight away, and it can have some time in the development branch. Please be on the lookout for any regressions. |
If
no_deploy
has been set toTRUE
in a transaction, then the intention is that no changes will be made to the installed flatpaks. Currently that's not the case for explicitly or implicitly added uninstall operations. That's particularly bad for eol-rebase flatpaks since they old version will be automatically removed without the new version being installed. To address this, prevent uninstall operations from being added for no deploy transactions.Closes: #5172