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 <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
