cavaliergopher / rpm

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

Merge yum API methods from jfrog fork #22

Open mcandre opened 4 years ago

mcandre commented 4 years ago

Hi, thank you for publishing a tremendously helpful library for analyzing RPM packages! Some forks such as jfrog have extended the library to analyze Yum metadata as well. Could we merge these changes into the main go-rpm library?

https://github.com/jfrog/go-rpm

cavaliercoder commented 4 years ago

Thanks! I'd be happy to but I don't see the yum API code anywhere? I only see a change to a single bounds check.

https://github.com/cavaliercoder/go-rpm/compare/master...jfrog:master

pixdrift commented 4 years ago

I believe @mcandre is referring to the yum capabilities here: https://github.com/jfrog/go-rpm/tree/master/yum

Primarily to interrogate the repomd.xml and primary.xml files generated by createrepo, although it appears the jfrog implementation has chosen to use the sqlite primarydb over the primary.xml file.