[Yum] [python API] add package download event

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Fri Sep 14 05:29:00 UTC 2012


On Wed, Sep 12, 2012 at 9:43 PM, Alon Bar-Lev <alonbl at redhat.com> wrote:

> Hello,
>
> Currently we have:
> PT_DOWNLOAD - start download
> PT_DOWNLOAD_PKGS - list of packages to download.
> The void until:
> PT_GPGCHECKPT_GPGCHECK
>
> This void takes a lot of time as packages are downloaded.
>
> May I suggest adding an event before/after each package is downloaded?
>
> Maybe I missed this exiting functionality, but all I see is raw text logs
> that may provide this information if I parse the data.
>
> Regards,
> Alon Bar-Lev.
> _______________________________________________
> Yum mailing list
> Yum at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum
>

This event is only for the mayor events, you must make a download callback
handler for tracking the download of each file being download

You can take a look at the yumex backend code of how to handle it (
YumexDownloadCallback)

https://github.com/timlau/yumex/blob/master/src/yumexbackend/yum_server.py

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20120914/99930200/attachment.html>


More information about the Yum mailing list