RPM Community Forums

Mailing List Message of <rpm-users>

Re: RPMTAG_FILENAMES tag still needed

From: Mark Hatle <mark.hatle@windriver.com>
Date: Thu 30 Jan 2014 - 16:54:40 CET
Message-ID: <52EA75C0.7070700@windriver.com>
On 1/30/14, 7:41 AM, Apparao Urla (aurla) wrote:
> Hi,
>
> I am implementing one API to get the list of files using RPMTAG_FILENAMES.
>
> I found that  RPMTAG_FILENAMES is removed in 5.1.9.
>
> Please correct me if I am wrong,
>
> there is no other option to to get the list of files in a rpm rather than
> parsing the directories(RPMTAG_DIRNAMES) ,
>
> dir indexes(DIRINDEXES) and basenames(BASENAMES) tags.

That is the correct way to do it.  The FILENAMES has been deprecated for years, 
and was finally removed.

I've got something I put together back in about 2002 that might help you 
visualize the structures:

http://gate.crashing.org/~fray/rpm/rpm-xml-desc.jpg

Basically you do:

i = index

<dirname>/<filename> = Dirnames[Dirindexes[i]]/Basenames[i]

Pretty simple to reconcile, it's just three structures instead of one.

--Mark

> Is there any other option (TAG) to get the list of files?.
>
> Thanks and Regards,
>
> Apparao.
>
> Cisco systems India Pvt Ltd,
>
> Bangalore.
>
Received on Thu Jan 30 17:00:06 2014
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.