upgrade path for moving packages from depends to _pmb_recommends
Let's take 6191625a as an example. It makes it so that old installations get gnome-console
removed. A user complained to me about it because there was literally no terminal app in Gnome, and he couldn't switch tty because of new chromebooks not using media keys as F keys. The solution was to ssh into the device and apk add gnome-console
, but we don't enable ssh in prebuilt images, so the solution might not work for everyone. (This paragraph is just to proof the point)
The solution might be to have $pkgname.pre-upgrade
script which checks if the previous version is older than the version which moves package to recommends. If this check passes then we do echo pkgname >> /etc/apk/world
, so apk will keep upgrading the package. The problem is that I'm not sure apk will catch changes in world during upgrade process.. It is likely that it will not, so this needs testing or other proposals how to deal with it