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.


______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
User Communication List                             [email protected]

Reply via email to