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:
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
I think isBroken has no meaning now, as the patch is never installed, and broken meant installed & !satisfied
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups