[Yum-devel] yum-src people

Paul Nasrat pnasrat at redhat.com
Mon Mar 14 08:00:33 UTC 2005


On Mon, 2005-03-14 at 02:55 -0500, seth vidal wrote:
> > For me the most important thing is installing build dependencies of both 
> > local src.rpm's and from repositories. 
> 
> 
> okay - I was looking at this some this weekend. Is there any reason why
> this isn't about a 10 line script?
> 
> import sys
> import yum
> import rpmUtils
> ts = rpmUtils.transaction.initReadOnlyTransaction()
> 
> mysrpm = yum.packages.YumLocalPackage(ts, sys.argv[0])
> 
> for req in mysrpm.requiresList():
>     .... pass each requires to the install functions in yum ...
> 
> 
> what else does it need to do?

A nodeps to allow just the single src.rpm to be installed
Maybe support --define topdir override to change the macro (or
alternately source a macrofiles).

Paul




More information about the Yum-devel mailing list