diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-03-11 10:31:44 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-03-23 12:38:43 +0100 |
commit | 21b3eac8f9ab8e12b43fa8998a5aa5465f29adc5 (patch) | |
tree | db422dd2b15ee2ed0b4340207c58042c9a44b795 /apt-pkg/cdrom.cc | |
parent | be7ce6f1d067fa62b01685e48094f3f73c95189f (diff) |
discard candidates via IsInstallOk to allow override
In commit 446551c8 I changed MarkInstall to discard the candidate if the
candidate can't satisfy the dependency. This breaks interactive solvers
like aptitude which can change the candidate on-the-fly later.
In commit df77d8a5 I introduced this 'early' loop-breaking to begin with
which can't be that helpful for interactive solvers as well, but makes
perfect sense for non-interactives to stop them from exploring trees
which can't be satisfied, but it isn't perfect as ideally we would check
this before auto-installing the first dependency.
This commit therefore moves the loop into its own IsInstallOk hook so
that frontends can override this check if they want to and in exchange
removes the loop-breaking from MarkInstall itself and does it before any
dependency is installed.
Closes: 740750
Diffstat (limited to 'apt-pkg/cdrom.cc')
0 files changed, 0 insertions, 0 deletions