community/gnome-software-plugin-apk: upgrade behavior is dangerous, violates apk consistency guarantees, can leave system broken
In https://github.com/Cogitri/gnome-software-plugin-apk/blob/master/src/gs-plugin-apk/gs-plugin-apk.c#L429-L466, we see that packages are individually upgraded in their own transactions.
This is fine when individual upgrades are requested, but not fine when the "upgrade all" button is clicked. In that case, it must perform the entire upgrade as a single transaction. Failure to do so violates apk consistency guarantees and may result in an incomplete/failed upgrade that must be repaired using apk fix
.
This has already resulted in one user (@Newbyte) asserting that "apk upgrades do not perform transaction consistency checks." When used in combination with gnome-software
, this is certainly the case because gnome-software is not using apk correctly.
Please fix or disable the "upgrade all" functionality if it cannot be implemented in a correct way.