Re: [python API] add package download event
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <CAD5sFAZiQfemZYivfGZOaAJKvt6xFGHTD-oAeVH2AZgp9wa80A@mail.gmail.com> |
On Wed, Sep 12, 2012 at 9:43 PM, Alon Bar-Lev <[email protected]> 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 > [email protected] > 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 [email protected] http://lists.baseurl.org/mailman/listinfo/yum