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

PendingInstall and PendingRemoval apps not installed or removed during upgrades #16

Open
pabloyoyoista opened this issue Dec 1, 2021 · 2 comments
Labels
apk-polkit-rs Need work in apk-polkit-rs project bug Something isn't working

Comments

@pabloyoyoista
Copy link
Collaborator

pabloyoyoista commented Dec 1, 2021

Those apps are totally skipped, generating inconsistencies. For example, a simple sudo apk upgrade installed and removed some packages after the system was in theory completely up-to-date according to the UI.

That is happening because currently apps are not marked for an upgrade unless state is Upgradable or Downgradable.

When adding this functionality, to produce the correct results in the UI, PendingInstall apps should be marked as GS_APP_STATE_AVAILABLE and PendingRemove apps as GS_APP_STATE_UNAVAILABLE.

EDIT: In alpine running edge it is common that PendingRemove is due to a program not being needed anymore due to depends and the logical process would be for apps to be marked before the removal as GS_APP_STATE_INSTALLED. I sent a patch upstream that just got merged, so we would have to patch GS 41 if want to implement this functionality before GS42

@Cogitri
Copy link
Owner

Cogitri commented Dec 2, 2021

Hm, I added PendingInstall and PendingRemoval since I had assumed apk would usually automatically deal with them upon upgrading all the other packages. If that's not always the case, we should handle them properly in GS

@pabloyoyoista
Copy link
Collaborator Author

Yes, I do not understand the apk-rs-polkit yet enough to know why it is not the case. The fact that I can barely read rust does not help either...

@pabloyoyoista pabloyoyoista added bug Something isn't working apk-polkit-rs Need work in apk-polkit-rs project labels May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apk-polkit-rs Need work in apk-polkit-rs project bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants