summaryrefslogtreecommitdiff
path: root/apt-pkg/solver3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/solver3.cc')
-rw-r--r--apt-pkg/solver3.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/apt-pkg/solver3.cc b/apt-pkg/solver3.cc
index 8d80dfb3c..06008fb5d 100644
--- a/apt-pkg/solver3.cc
+++ b/apt-pkg/solver3.cc
@@ -648,12 +648,7 @@ void APT::Solver::UndoOne()
if (not solvedItem.assigned.empty())
{
if (unlikely(debug >= 4))
- {
- if (auto P = solvedItem.assigned.Pkg(cache); not P.end())
- std::cerr << "Unassign " << P.FullName() << "\n";
- if (auto V = solvedItem.assigned.Ver(cache); not V.end())
- std::cerr << "Unassign " << V.ParentPkg().FullName() << "=" << V.VerStr() << "\n";
- }
+ std::cerr << "Unassign " << solvedItem.assigned.toString(cache) << "\n";
auto &state = (*this)[solvedItem.assigned];
state.decision = Decision::NONE;
state.reason = Var();