revert deletion of list-all-problems, but only if multiple problems
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 31 Aug 2007 13:22:22 +0000 (13:22 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 31 Aug 2007 13:22:22 +0000 (13:22 +0000)
exist

src/zypper-misc.cc

index ba971a2..42fadac 100644 (file)
@@ -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);