-
Notifications
You must be signed in to change notification settings - Fork 158
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
dnf: Implement DependsOn and RequiredBy #495
base: main
Are you sure you want to change the base?
dnf: Implement DependsOn and RequiredBy #495
Conversation
This PR currently doesn't actually have the logic implemented, mostly because I'm not sure how to do it yet. However, I figured creating this PR would make it easier to solicit some guidance on what I should be doing, or even if my starting approach is even right. @dmach, @j-mracek, @jrohel, @hughsie: I would appreciate any help given here... |
What's the 40,000ft use case? You have to be careful, and this is usually why SIMULATE gives you better results for what's going to happen. |
The main use-case for implementing this is that Plasma Discover 5.22 now uses this for informing the user of what will change on installation or removal of an application. In the future, it may be used to implement heuristics for determining when to trigger offline updates. |
You need to use SIMULATE for this. There's no way of showing the correct results without knowing what you're going to do, i.e. what the rest of the transaction looks like. |
But that wouldn't also show what it depends on that's already installed, would it? |
No, it should show you the INSTALLING/REMOVING/UPDATING packages just like a normal "install" would do. |
Ahh yes; for this kind of thing it's fine -- my point was based on the assumption you wanted "if I installed this what else would have to be installed" |
I've been up for too many hours, I'm bad at words now. 😛 💤 |
Okay, lets fix up the FIXMEs and then LGTM. |
This allows software centers to make decisions based on the dependency tree.
d7195e6
to
0876c26
Compare
This allows software centers to make decisions based on the
dependency tree.
Fixes: #106