Re: yum source code

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

 



pranjal pandit <pranjal5215@xxxxxxxxx> writes:

> Hello,
[...]
> How does the status bar  of download gets incremented (x% to x+1% and
> hashes ###) while package is getting downloaded if code is not
> currently multithreaded ??

 From downloadPkgs() we have:

                 mylocal = po.repo.getPackage(po,
                                   checkfunc=checkfunc,
                                   text=text,

...here "text" is the part at the beginning of the line in the
download progress. This is used and the current download info. is
added to it in the "progress callback", setup in
setupProgressCallbacks() in output.py.

 That's basically just urlgrabber.progress.TextMeter().

-- 
James Antill -- james@xxxxxxx
_______________________________________________
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