I want to know how yum download pkgs, I think it is done here:

yum->yummain.py->cli.py
problems =  self.downloadPkgs(downloadpkgs)