On Dec 19, 2007, at 5:27 PM, Pazzo Da Legare wrote:
> Dear All,
>
> given a package with full name <Name>-<Version>-<Release>
> how can I match the package header by fullname (not only) and not
> using only the <Name> and iterate on the result using
> "rpmtsInitIterator(ts, RPMTAG_NAME, <Name>, 0)"?
>
Use an iterator on RPMDBI_LABEL is one approach.
Using primary retrieval on RPMTAG_NAME with 2ndary explicit filtering on
RPMTAG_VERSION and RPMTAG_RELEASE within your iteration
loop is another approach.
Primary retrieval on RPMTAG_NAME with implicit pattern matches on
RPMTAG_VERSION
and RPMTAG_RELEASE using rpmdbSetIteratorRE() is a 3rd approach.
The approaches are all basically identical in the sense that
the same comparison operations are performed.
73 de Jeff
Received on Thu Dec 20 02:07:05 2007