[Yum-devel] [PATCH] refresh-updatesd: some tweaks
seth vidal
skvidal at fedoraproject.org
Mon Oct 1 12:44:54 UTC 2007
On Mon, 2007-10-01 at 02:27 -0400, James Antill wrote:
> 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?
don't look at base.up or the property will automatically run it. Look to
see if base._up is anything other than none, then you can call
getUpdatesList() if you want.
-sv
More information about the Yum-devel
mailing list