+// ProblemResolver::Resolve - calls a resolver to fix the situation /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+bool pkgProblemResolver::Resolve(bool BrokenFix)
+{
+ std::string const solver = _config->Find("APT::Solver::Name", "internal");
+ if (solver != "internal")
+ {
+ FILE* output = fopen("/tmp/scenario.log", "w");
+ EDSP::WriteScenario(Cache, output);
+ fclose(output);
+ output = fopen("/tmp/request.log", "w");
+ EDSP::WriteRequest(Cache, output);
+ fclose(output);
+ if (ResolveInternal(BrokenFix) == false)
+ return false;
+ output = fopen("/tmp/solution.log", "w");
+ EDSP::WriteSolution(Cache, output);
+ fclose(output);
+ return true;
+ }
+ return ResolveInternal(BrokenFix);
+}
+ /*}}}*/
+// ProblemResolver::ResolveInternal - Run the resolution pass /*{{{*/