[Question] Order of installation/upgrades for "install_if" packages
I asked in IRC, and I was redirected here. I apologize if this is not the right place to ask.
Regarding some problem in pmOS, I have some question about whether there is a warrantied order during both installations and upgrades. The main reason, is that we currently enable some system services of dependent packages on the post-upgrade
scripts of some meta-packages. I have built apk-tools with DEBUG_PRINT
and read some of the solver code, but I am still a bit confused about quite some of the solver bits, so I thought asking would be smart. I hope it's not too annoying. I am interested in the following circumstances:
- Install: if "a" -> depends -> "b" -> depends -> "c", is there a warranty that "c" will be installed before "b", before "a"? They way I understand the solver, and some debugging, this is the only one that I'm partially sure is like this.
- Upgrade of packages (assuming all of them upgraded): if "a" -> depends -> "b" -> depends -> "c", is there a warranty that "c" will be upgraded before "b", before "a"?
In a sense, these two situations are the ones we need so we can keep the post-upgrade
scripts and can avoid using "triggers" instead. The ones below just influence how we should do the packaging:
- Install: if "a" -> depends -> "b", and "c" -> install_if -> "a"=ver, "b", is there any warranty regarding the installation order of "c"? So for example, that it will be installed before any package that depends on "a"? By experience I assume no, but just checking.
- Upgrade of packages (assuming all of them upgraded): if "a" -> depends -> "b", and "c" -> install_if -> "a"=ver, "b", is there any warranty regarding the upgrade order of "c"? So for example, that it will be upgraded before any package that depends on "a"? Again, by experience I guess no, but also just checking.
Thank you very much for your time :)