From 38320a6f553eec7e5eefbe7c1f23b2561a2c903e Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 11 Feb 2014 22:10:33 +0100 Subject: [PATCH] Enhance "End of Support" message --- src/info.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.7.4