Mailinglist Archive: zypp-devel (227 mails)
| < Previous | Next > |
Re: [zypp-devel] new PoolItem/ResObject call isRelevant()
- From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
- Date: Mon, 21 Apr 2008 18:14:54 +0200
- Message-id: <480CBD7E.6020405@xxxxxxx>
Jan Kupec wrote:
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Hi,I think isBroken has no meaning now, as the patch is never installed, and broken meant installed & !satisfied
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 > |