From: Michael Andres Date: Tue, 6 Dec 2011 17:26:45 +0000 (+0100) Subject: Print patch summary (bnc#733167) X-Git-Tag: 1.6.18~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ef28a76d6480df1741177ca76dac05bfb030e22;p=platform%2Fupstream%2Fzypper.git Print patch summary (bnc#733167) --- 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;