Mailinglist Archive: zypp-devel (227 mails)
| < Previous | Next > |
Re: [zypp-devel] new PoolItem/ResObject call isRelevant()
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Mon, 21 Apr 2008 17:19:00 +0200
- Message-id: <480CB064.8030109@xxxxxxx>
Hi,
I'm just fixing some zypper queries and started to use the following
function to print the patch status. Is it right?
string string_ppp_status(const PoolItem & pi)
{
if (pi.isRelevant())
{
if (pi.isSatisfied())
return _("Installed");
if (pi.isBroken())
return _("Needed");
// can this ever happen?
return "";
}
return _("Not Applicable");
}
Q: what should isRelevant() return for patterns/products?
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
I'm just fixing some zypper queries and started to use the following
function to print the patch status. Is it right?
string string_ppp_status(const PoolItem & pi)
{
if (pi.isRelevant())
{
if (pi.isSatisfied())
return _("Installed");
if (pi.isBroken())
return _("Needed");
// can this ever happen?
return "";
}
return _("Not Applicable");
}
Q: what should isRelevant() return for patterns/products?
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |