Enhance "End of Support" message
authorMichael Andres <ma@suse.de>
Tue, 11 Feb 2014 21:10:33 +0000 (22:10 +0100)
committerMichael Andres <ma@suse.de>
Tue, 11 Feb 2014 21:10:33 +0000 (22:10 +0100)
src/info.cc

index a91f45e..5e7aa77 100644 (file)
@@ -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