[Yum-devel] [PATCH] refresh-updatesd: some tweaks
James Antill
jantill at redhat.com
Mon Oct 1 06:27:58 UTC 2007
On Mon, 2007-10-01 at 01:16 -0400, seth vidal wrote:
> On Sun, 2007-09-30 at 19:24 -0400, James Bowes wrote:
> > Is there any way we can check if there are updated packages without
> > forcing the updates calculation?
>
> Think about that statement for a second :)
>
> It's sorta like saying: Is there any way we can see if it is red w/o
> looking at it? Isn't it?
I think he means is there any official way the plugin can see if the
updates calculation has been done, without automatically triggering the
updates calculation.
Maybe something like:
try:
if not len(conduit._base.up.getUpdatesList()):
return # No updates, don't trigger updatesd
except:
# _base.up might not exist etc. ... if so don't trigger updatesd
return
...at the start of the current hook?
--
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071001/ad58b097/attachment.pgp
More information about the Yum-devel
mailing list