From e869e552bd57809b65661272b0934e7abccc759f Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Fri, 31 Aug 2007 13:22:22 +0000 Subject: [PATCH] revert deletion of list-all-problems, but only if multiple problems exist --- src/zypper-misc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/zypper-misc.cc b/src/zypper-misc.cc index ba971a2..42fadac 100644 --- a/src/zypper-misc.cc +++ b/src/zypper-misc.cc @@ -491,6 +491,14 @@ bool show_problems () stm << _("Specified capability not found") << endl; return false; } + // for many problems, list them shortly first + if (rproblems.size() > 1) + { + for (i = b; i != e; ++i) { + stm << _("Problem: ") << (*i)->description () << endl; + } + } + // now list all problems with solution proposals for (i = b; i != e; ++i) { stm << endl; tribool stopnow = show_problem (*(*i), todo); -- 2.7.4