On Saturday 2022-05-21 15:19, Neal Gompa wrote:
On Sat, May 21, 2022 at 8:54 AM Aaron Puchert wrote:
Another problem is that if we have NetworkManager and NetworkManager-wifi obsolete older versions of NetworkManager, the solver might see no need for NetworkManager-wifi: after all, since the new NetworkManager updates the old NetworkManager, there is no old NetworkManager to be obsoleted anymore.
Because this is always a possibility, a resolver should preferably evaluate Obsoletes against the existing package set, not the final set.
Hmm, right, we don't have the ability to predict the Release value, do we? That does make things slightly tricky...
Predict no, but in general, it is strictly monotonically increasing. (Save for: downgrades, downgrades-then-upgrades, delete-then-reinstate, and games with prjconf).
Sadly, we don't have an openSUSE-release-container package that we could use for conditional Requires. If we did, we could do something fancy like this:
Requires: (NetworkManager-wifi unless (openSUSE-release-container or MicroOS-release))
That may be too broad even for the noncontainer case.