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]