On 04/26/2009 09:28 PM, pranjal pandit wrote:
yum.HDP() look very ugly to me, use something longer and more descriptive in mixed Case (MyDammUsefulClass) Why do you define a yum.yumBase() class inside a class there inherit from yum.yumBase, you can just use self here you make 2 new instances if the class you already are inside, very confusing and a memory nightmare now you have 3 YumBaseCli classes and 3 Extra YumBase clasess running. yumex.pot is a genratend files, no need to send patches against that. There is a lot of other issues, it makes the code very confusing. :( I need to be convinced that it is worth the effort. I think you are attacking the "problem" in the wrong way. you should try making a plugin instead there is downloading the packages multi threaded in a "predownload" hook. The you need no changes to yumbase and yum will just skip the downloading because all the packages is in the cache already and continue with the transaction. You don't even need to use urlgrapper, you can use something else like pycurl, i think that i already supports multiple downloads, so you dont need to use python threads :) When it is rocking then it might be an idea to itegrate it into yumbase, but it in lower level than you current attempt. So it can be useful to Yum API users also and not just yum cli users. Hope that i don't sound to refusing, it was not my intention :) Tim |
_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum