[Yum-devel] [PATCH 2/5] Integrate presto support to yum
Zdenek Pavlas
zpavlas at redhat.com
Thu Feb 28 09:14:03 UTC 2013
> > + have = ayum._up.installdict.get(new[:2], [])
>
> This causes a traceback due to _up being None at this point, is
> there a
> reason not to use .up. ? ... I guess we can check if _up is None and
> just leave, but curious why you used the internal version (or just do
> rpmdb lookups).
This code runs only when po.state == TS_UPDATE, I thought it implies
the updates object must have been set up previously, so I took
the opportunity to skip all rpmdb searches.
Apparently, sometimes this does not work. Could you provide
some background? Did replacing "_up" with up/_getUpdates help?
Calculating updates is probably much more costly than just using
rpmdb in this case.
More information about the Yum-devel
mailing list