Re: [python API] add package download event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, Sep 12, 2012 at 9:43 PM, Alon Bar-Lev <alonbl@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
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
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux