[Yum] yum source code
James Antill
james-yum at and.org
Mon Mar 23 06:44:18 UTC 2009
pranjal pandit <pranjal5215 at gmail.com> 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 at and.org
More information about the Yum
mailing list