[Yum-devel] yum-utils repoquery

Mike Cvet mcvet at redhat.com
Fri May 19 15:15:25 UTC 2006


Good call; fixed. I used getBaseArch() from rpmUtils to do the job,
thanks.

Mike

On Thu, 2006-05-18 at 19:01 -0400, Paul Nasrat wrote:
> On Thu, 2006-05-18 at 11:38 -0400, Mike Cvet wrote:
> > Hey all,
> > 
> > I'm new to yum development and was looking to implement --buildrequires
> > and --whatbuildrequires in repoquery via yum-utils. 
> > 
> > I've attached a patch for repoquery.py which adds functionality to the
> > above options, but am looking for any specific requirements which
> > further need to be implemented.
> 
> You can't assume you are running on an i386, you need to look at:
> 
> import rpmUtils.arch
> rpmUtils.arch.getArchList()
> 
> Paul
> 
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repoquery.py.patch
Type: text/x-patch
Size: 4014 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20060519/ae986671/attachment.bin 


More information about the Yum-devel mailing list