[Yum-devel] [yum-commits] yum-builddep.py
James Antill
james at fedoraproject.org
Tue Jan 5 18:14:03 UTC 2010
On Mon, 2010-01-04 at 09:30 +0000, Tim Lauridsen wrote:
> + # Note we do not use the epoch to search as the epoch for the
> + # source rpm might be different from the binary rpm (see
> + # for example mod_ssl)
> + if newpkg.arch != 'src':
> + name = newpkg.returnSimple('sourcerpm').rsplit('-',2)[0]
> + src = self.pkgSack.searchNevra(name=name, arch = 'src',
> + ver = newpkg.version,
> + rel = newpkg.release
> + )
Epoch is not special ... the full e:v-r of the source package can be
different from the sub-package. We could extend base_package_name to
just be the first value of base_pkgtup? Then it should just be a simple
lookup on that.
More information about the Yum-devel
mailing list