> > + 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. _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel