[Yum-devel] yum-utils repoquery

Panu Matilainen pmatilai at laiskiainen.org
Sun May 21 11:00:10 UTC 2006

On Sat, 20 May 2006, Paul Nasrat wrote:

> On Sat, 2006-05-20 at 01:43 -0700, Panu Matilainen wrote:
>> I don't mind adding aliases for --buildrequires and --whatbuildrequires
>> but you could just reuse/enhance the existing logic for enabling src
>> archlist as needed for these operations instead of reinventing it :) Also
>> I think fmt_buildrequires() could be just: return self.fmt_requires()
>> instead of duplicating the functionality (unless I missed something...)
> I don't think those queries work fully with --alldeps/resolve as you
> don't have resolve all the deps of the package so if I build
> requires /usr/bin/foo then we won't resolve that.
> repoquery --archlist=src --whatrequires --alldeps desktop-file-utils |
> grep kde
> Grepping the specs:
> ./kdebindings/kdebindings.spec:BuildRequires: /usr/bin/desktop-file-install
> ./kdemultimedia/kdemultimedia.spec:BuildRequires: /usr/bin/desktop-file-install

Hmm right, indeed --whatrequires for build deps can't be fully handled at 
the moment. And there's certainly room for improvement in src.rpm 
handling in general, for example you need to manually look up the src.rpm 
name before you can query the build deps of a given package.

 	- Panu -

More information about the Yum-devel mailing list