From: Michael Andres Date: Tue, 11 Feb 2014 21:10:33 +0000 (+0100) Subject: Enhance "End of Support" message X-Git-Tag: upstream/1.11.11~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38320a6f553eec7e5eefbe7c1f23b2561a2c903e;p=platform%2Fupstream%2Fzypper.git Enhance "End of Support" message --- diff --git a/src/info.cc b/src/info.cc index a91f45e..5e7aa77 100644 --- a/src/info.cc +++ b/src/info.cc @@ -439,8 +439,10 @@ void printProductInfo(Zypper & zypper, const ui::Selectable & s) cout << _("Is Base") << ": " << (product->isTargetDistribution() ? _("Yes") : _("No")) << endl; - cout << _("End of Support") << ": " << product->endOfLife().printDate() << endl; - + { + Date eol( product->endOfLife() ); + cout << _("End of Support") << ": " << ( eol ? eol.printDate() : _("undefined") ) << endl; + } printSummaryDesc(pool_item.resolvable()); // Print dependency lists if CLI requests it