Skip to content
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

[RFE] Provides selection callback mechanism #107

Closed
Conan-Kudo opened this issue Oct 8, 2015 · 1 comment
Closed

[RFE] Provides selection callback mechanism #107

Conan-Kudo opened this issue Oct 8, 2015 · 1 comment

Comments

@Conan-Kudo
Copy link
Member

Partly due to what's been experienced in Fedora (see #66) and partly due to my work to introduce DNF into Mageia (see #106 for some patches I've submitted in regards to these efforts) and my efforts to ensure DNF is a strong functional replacement, I've encountered cases where it would be nice if it were possible for the user to be able to select what would satisfy a Requires, when multiple "equally useful" options are available.

I filed a request for the feature in DNF, however it was closed because it isn't possible without a mechanism in libsolv to do it.

It would be nice if this part of the libsolv README became true:

[...] allows to provide the user with suggestions on how to deal with unsolvable problems.

Please consider implementing it.

@mlschroe
Copy link
Member

mlschroe commented Oct 9, 2015

The libsolv philosophy is a bit different: we don't support a callback for ambiguities when they are encountered, as with backtracking it's possible that we have to take a different branch anyway.

Instead, libsolv offers methods to query for the encountered ambiguities after the solving, so that the user can be presented with a list of choices and then select different packages. DNF doesn't make use of this feature yet, though.

@mlschroe mlschroe closed this as completed Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants