-
Notifications
You must be signed in to change notification settings - Fork 154
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
"short-circuit" evaluation of boolean dependencies #570
Comments
There's no easy way to implement this due to libsolv being a SAT solver that translates dependencies to rules on packages. With this translation all ordering information is gone. So the implementation would need to map the rule back to the originating dependency/dependencies. I'm not sure if it's such a good idea, though, as it implies that there is always a preferred choice. |
If libsolv can leverage
Why there should not be? In my specific example, I really cannot judge why Looking into Fedora, there are 56 packages using the boolean syntax. From these 56, there are 8 which combines this with |
Not mentioning that hinting the preferred package is not the original purpose of |
I am coming here from https://bugzilla.redhat.com/show_bug.cgi?id=2295752. The issue is that given
Requires: (weston or cage or kwin-wayland or mutter or gnome-kiosk)
, it would be natural (due to to commonly used "short-circuit" evaluation in programing languages) to assumeweston
is the preferred choice, but in realitycage
is installed. I think this should change.The text was updated successfully, but these errors were encountered: