Re: yum simultaneous download of packages

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
pranjal pandit <[email protected]> writes:

> Hello,
> i am working on downloading two packages simultaneously from different
> mirrors and i want some information regarding the same.

 Why are you limiting to different mirrors?

> 1)I want to know whether the downloadPkgs() function is the main
> function responsible for downloading of packages,

 Yes.

> also,
> 2)what all things currently run in parallel with packages getting
> downloaded (downloadPkgs() function)

 Nothing, yum is unlikely to ever be multi-threaded. And is currently
not multi-tasking or doing downloads via. a poll/epoll like backend.

> 3)What all things are done in downloadPkgs() function itself.

 Whatever the code says :)
 Mostly it's all to do with UI around a simple:

for pkg in packages_that_need_to_be_downloaded:
   pkg.download().

-- 
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.