cavaliergopher / rpm

A Go implementation of the RPM file format
BSD 3-Clause "New" or "Revised" License
169 stars 44 forks source link

Extended FileInfo attributes #18

Open Estefycp opened 4 years ago

Estefycp commented 4 years ago

Hi, I notice the fileinfo doesnt contain the flags isconfig, isdoc, rdev. If I need to get them do I just need to get the right tag? How can I now what is the meaning of each tag or how to calculate it?

cavaliercoder commented 4 years ago

Hey, I'm not sure the answer to your question so will have to look into it. Admittedly, have little time available while traveling and working but will try make this a priority.

If you find an answer, PRs are welcome :)

RPM tags are defined in the original source here: https://github.com/rpm-software-management/rpm/blob/master/lib/rpmtag.h#L61

Figuring out what they mean and how they are used is unfortunately, difficult.

cavaliercoder commented 4 years ago

20 introduced flags for these items. I may add IsConfig, etc. methods for convenience.