From 9ef28a76d6480df1741177ca76dac05bfb030e22 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 6 Dec 2011 18:26:45 +0100 Subject: [PATCH] Print patch summary (bnc#733167) --- src/update.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/update.cc b/src/update.cc index ec1abbd..6a58f94 100755 --- a/src/update.cc +++ b/src/update.cc @@ -247,16 +247,19 @@ static bool list_patch_updates(Zypper & zypper) } Table tbl; + if (!Zypper::instance()->globalOpts().no_abbrev) + tbl.allowAbbrev(5); Table pm_tbl; // only those that affect packagemanager (restartSuggested()), they have priority + if (!Zypper::instance()->globalOpts().no_abbrev) + pm_tbl.allowAbbrev(5); TableHeader th; unsigned cols; th << (zypper.globalOpts().is_rug_compatible ? _("Catalog") : _("Repository")) - << _("Name") << _("Version") << _("Category") << _("Status"); - cols = 5; + << _("Name") << _("Version") << _("Category")<< _("Status") << _("Summary"); + cols = 6; tbl << th; pm_tbl << th; - const zypp::ResPool& pool = God->pool(); ResPool::byKind_iterator it = pool.byKindBegin(ResKind::patch), @@ -287,6 +290,7 @@ static bool list_patch_updates(Zypper & zypper) tr << res->name () << res->edition ().asString(); tr << patch->category(); tr << (it->isBroken() ? _("needed") : _("not needed")); + tr << patch->summary(); if (!all && patch->restartSuggested ()) pm_tbl << tr; -- 2.7.4