[Yum-devel] plugin to order downloads wrt size
Seth Vidal
skvidal at fedoraproject.org
Mon Jun 22 15:31:16 UTC 2009
On Mon, 22 Jun 2009, Rakesh Pandit wrote:
> Hello,
>
> I have written a small plugin to order downloads as per size :
> (users with variable bandwidth do find it useful)
>
> http://rakesh.fedorapeople.org/yum/yum-download-order-0.1.tar.gz
> http://rakesh.fedorapeople.org/srpm/yum-download-order-0.1-1.fc11.src.rpm
> http://rakesh.fedorapeople.org/misc/yum-download-order-0.1-1.fc11.noarch.rpm
>
>
> The problem which I faced was .. sorting of pkgs occurs between
> predownload and postdownload hook using mediasort nested function
> giving no direct access to use it. So, I used one of evil hacks (as
> suggested by James in morning). I would like to patch up presto plugin
> also .. in case this sorting is adjusted so that hooks can have access
> to them .. as evil hacks I guess wouldn't be acceptable to presto
> atleast. Till the time this is done, I will have to update it as soon
> as any change occurs in downloadPkgs function.
>
> Suggestions and comments for improvement ?
1. dare I ask it - what difference does it make the order the pkgs are
downloaded in?
2. implementing your own downloadpkgs and overriding it is completely
doomed.
seriously, re-evaluate why you need to sort the download order.
-sv
More information about the Yum-devel
mailing list