Re: RPMTAG_FILENAMES tag still needed
On 1/30/14, 11:01 AM, R P Herrold wrote: On Thu, 30 Jan 2014, Mark Hatle wrote: 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 Hi, Mark Pretty geek pr0n -- done with something to prodice a .dot file for Graphviz, or something else Rational Rose. There are other open source apps that can do these kinds of diagrams now.. I did this because at the time we were trying to directly manipulate the RPM package itself, not using the librpm or similar. I've needed to automate some diagramming of this sort in a TUI (and VCS) friendly fashion Thanks - Russ herrold __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: RPMTAG_FILENAMES tag still needed
On Thu, 30 Jan 2014, Mark Hatle wrote: > 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 Hi, Mark Pretty geek pr0n -- done with something to prodice a .dot file for Graphviz, or something else I've needed to automate some diagramming of this sort in a TUI (and VCS) friendly fashion Thanks - Russ herrold __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: RPMTAG_FILENAMES tag still needed
On Jan 30, 2014, at 10:54 AM, Mark Hatle wrote: > 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. > Technically RPMTAG_FILENAMES hasn't been a tag, but rather a "header tag extension" all this century. The only way to complete the transition fromn tag to extension is to eliminate RPMTAG_FILENAMES, which behaves in at least 3 different ways in various versions of rpm. Accessing RPMTAG_{DIRNAMES,BASENAMES,INDICES} is one way to attempt portability: there are other approaches coding access in different ways that can be done as well. > 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 > Meanwhile the current headerGet() can access both tags and extensions transparently. The replacement extension (iirc, all this was done years ago) is RPMTAG_FILELISTS. 73 de Jeff __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: RPMTAG_FILENAMES tag still needed
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 / = 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 Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
RPMTAG_FILENAMES tag still needed
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. Is there any other option (TAG) to get the list of files?. Thanks and Regards, Apparao. Cisco systems India Pvt Ltd, Bangalore.