[Yum-devel] yum-src people

seth vidal skvidal at phy.duke.edu
Mon Mar 14 07:55:32 UTC 2005


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

-sv





More information about the Yum-devel mailing list