diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-03-30 22:15:40 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-03-30 22:15:40 +0200 |
commit | e3674d91d27a7290d2b01e14eb2540e10be9d883 (patch) | |
tree | 04490a287865c4ffa8dc3ef087618eda8cf4f3f9 /apt-pkg/algorithms.cc | |
parent | 6d38011bb93451dd9da3294614d821c77ac91687 (diff) |
be able to write solutions, too
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r-- | apt-pkg/algorithms.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 2ca3404a0..35752a5c4 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -748,6 +748,12 @@ bool pkgProblemResolver::Resolve(bool BrokenFix) output = fopen("/tmp/request.log", "w"); edspWriter::WriteRequest(Cache, output); fclose(output); + if (ResolveInternal(BrokenFix) == false) + return false; + output = fopen("/tmp/solution.log", "w"); + edspWriter::WriteSolution(Cache, output); + fclose(output); + return true; } return ResolveInternal(BrokenFix); } |