Show verbose summary when -v is used (bnc #517171)
authorJán Kupec <jkupec@suse.cz>
Tue, 30 Jun 2009 09:17:22 +0000 (11:17 +0200)
committerJán Kupec <jkupec@suse.cz>
Tue, 30 Jun 2009 09:17:22 +0000 (11:17 +0200)
src/solve-commit.cc

index 4969129..2653526 100755 (executable)
@@ -425,6 +425,11 @@ void solve_and_commit (Zypper & zypper)
     if (platform && platform->name().find("SUSE_SLE") != string::npos)
       summary.setViewOption(Summary::SHOW_UNSUPPORTED);
 
+    if (zypper.out().verbosity() == Out::HIGH)
+      summary.setViewOption(Summary::SHOW_VERSION);
+    else if (zypper.out().verbosity() == Out::DEBUG)
+      summary.setViewOption(Summary::SHOW_ALL);
+
     // show the summary
     if (zypper.out().type() == Out::TYPE_XML)
       summary.dumpAsXmlTo(cout);