On Feb 7, 2008, at 6:21 AM, Stefan Westmeier wrote:
> Hi,
>
> is there a way to get access to the required and provided list of
> packages via a macro?
>
If you really want "packages", rather than the {N,EVR,F} dependency
arrays,
then you'll have to do some scripting.
>
> Using:
>
> rpm -qa --qf 'Requires: %{requires}\n'
>
> does not seem to the job. I only get one item printed.
>
Yes.
Try
rpm -qa --qf '[Requires: %{REQUIRENAME}%{REQUIREFLAGS:depflags}%
{REQUIREVERSION}\n]'
which is --requires (from /usr/lib/rpm/rpmpopt-*) slightly modified.
the [...] is an iterator over all values int the array, the :depflags
specifies
the output format, and dependencies are a 3-tuple of {N,EVR,F}.
Is that what you want?
73 de Jeff
Received on Thu Feb 7 15:11:44 2008