Re: yum source code

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
pranjal pandit <[email protected]> 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 -- [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.