----- Original Message ----- > From: "Brian Long" <brilong@xxxxxxxxx> > To: "Yellowdog Updater, Modified" <yum@xxxxxxxxxxxxxxxxx> > Sent: Friday, March 8, 2013 10:24:03 PM > Subject: Re: Doubt regarding yum-builddep on Fedora > > Amit, > From a quick perusal of yum-builddep, it appears you need repo names > ending with -source and stick the src.rpms in there (i.e. > beaker-server-source). You cannot mix the src.rpm files with your > binary rpm files in a single repo. > > ----- > for repo in self.repos.listEnabled(): > issource_repo = repo.id.endswith('-source') > if rhn_source_repos and repo.id.endswith('-source-rpms'): > issource_repo = True > if rhn_source_repos and (not > repo.id.endswith('-source-rpms') and > repo.id.endswith('-rpms')): > srcrepo = '%s-source,%s-source-rpms' % (repo.id, > repo.id[:-5]) > elif not issource_repo: > srcrepo = '%s-source' % repo.id > else: > # Need to change the arch. > repo.close() > self.repos.disableRepo(repo.id) > srcrepo = repo.id > ----- Thanks for your reply, Brian. As per your suggestion I went ahead and created two separate repositories with ids: beaker and beaker-source with two separate locations: one having the RPM package and another just the SRPM. Some more investigation lead to the problem being in searchNevra() in packageSack.py. Here is a pdb session with set_trace() set in _computeAggregateListResult(), just before it returns: (Pdb) print methodName returnPackages (Pdb) print args (None, ['beaker-server'], False) (Pdb) print result [<YumAvailablePackageSqlite : beaker-server-0.10.4-1.fc17.noarch (0x13fced0)>] (Pdb) c > /usr/lib/python2.7/site-packages/yum/packageSack.py(603)_computeAggregateListResult() -> return result (Pdb) print args ('beaker', None, '0.10.4', '1.fc17', 'src') (Pdb) print methodName searchNevra (Pdb) print result [] (Pdb) c No source RPM found for beaker-server-0.10.4-1.fc17.noarch As can be seen, the searchNevra() fails to find a match for the SRC rpm, whereas it find the beaker-server RPM correctly. Now, running yumdownloader --source beaker-server, here is what pdb tells: (Pdb) print args ('beaker', None, '0.10.4', '1.fc17', 'src') (Pdb) print result [<YumAvailablePackageSqlite : beaker-0.10.4-1.fc17.src (0x2069710)>] So, there is something different in the environment when yumdownloader and yum-builddep is operating. Best, Amit. -- Amit Saha <http://echorand.me> Infrastructure Engineering and Development Red Hat, Inc. _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum