*/
bool pkgDistUpgrade(pkgDepCache &Cache)
{
- std::string const solver = _config->Find("APT::Solver::Name", "internal");
+ std::string const solver = _config->Find("APT::Solver", "internal");
if (solver != "internal") {
OpTextProgress Prog(*_config);
return EDSP::ResolveExternal(solver.c_str(), Cache, false, true, false, &Prog);
to install packages not marked for install */
bool pkgAllUpgrade(pkgDepCache &Cache)
{
- std::string const solver = _config->Find("APT::Solver::Name", "internal");
+ std::string const solver = _config->Find("APT::Solver", "internal");
if (solver != "internal") {
OpTextProgress Prog(*_config);
return EDSP::ResolveExternal(solver.c_str(), Cache, true, false, false, &Prog);
/* */
bool pkgProblemResolver::Resolve(bool BrokenFix)
{
- std::string const solver = _config->Find("APT::Solver::Name", "internal");
+ std::string const solver = _config->Find("APT::Solver", "internal");
if (solver != "internal") {
OpTextProgress Prog(*_config);
return EDSP::ResolveExternal(solver.c_str(), Cache, false, false, false, &Prog);
system was non-broken previously. */
bool pkgProblemResolver::ResolveByKeep()
{
- std::string const solver = _config->Find("APT::Solver::Name", "internal");
+ std::string const solver = _config->Find("APT::Solver", "internal");
if (solver != "internal") {
OpTextProgress Prog(*_config);
return EDSP::ResolveExternal(solver.c_str(), Cache, true, false, false, &Prog);
Update(Pkg);
AddSizes(Pkg);
- if (AutoInst == false || _config->Find("APT::Solver::Name", "internal") != "internal")
+ if (AutoInst == false || _config->Find("APT::Solver", "internal") != "internal")
return;
if (DebugMarker == true)
// pkgDepCache::MarkRequired - the main mark algorithm /*{{{*/
bool pkgDepCache::MarkRequired(InRootSetFunc &userFunc)
{
- if (_config->Find("APT::Solver::Name", "internal") != "internal")
+ if (_config->Find("APT::Solver", "internal") != "internal")
return true;
bool follow_recommends;
if (_config->FindB("APT::Solver::Strict-Pinning", true) == false)
fprintf(output, "Strict-Pinning: no\n");
string solverpref("APT::Solver::");
- solverpref.append(_config->Find("APT::Solver::Name", "internal")).append("::Preferences");
+ solverpref.append(_config->Find("APT::Solver", "internal")).append("::Preferences");
if (_config->Exists(solverpref) == true)
fprintf(output, "Preferences: %s\n", _config->Find(solverpref,"").c_str());
fprintf(output, "\n");
{0,"install-recommends","APT::Install-Recommends",CommandLine::Boolean},
{0,"install-suggests","APT::Install-Suggests",CommandLine::Boolean},
{0,"fix-policy","APT::Get::Fix-Policy-Broken",0},
- {0,"solver","APT::Solver::Name",CommandLine::HasArg},
+ {0,"solver","APT::Solver",CommandLine::HasArg},
{'c',"config-file",0,CommandLine::ConfigFile},
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
if (_config->FindI("quiet", 0) < 1)
_config->Set("Debug::EDSP::WriteSolution", true);
- _config->Set("APT::Solver::Name", "internal");
+ _config->Set("APT::Solver", "internal");
_config->Set("edsp::scenario", "stdin");
int input = STDIN_FILENO;
FILE* output = stdout;
overview of them is given below. Please refer to proper APT
configuration documentation for more, and more up to date, information.
-- **APT::Solver::Name**: the name of the solver to be used for
+- **APT::Solver**: the name of the solver to be used for
dependency solving. Defaults to `internal`
- **APT::Solver::Strict-Pinning**: whether pinning must be strictly