jaypipes / pcidb

Small golang library for querying PCI database (pciids) information
Apache License 2.0
33 stars 15 forks source link

Add support for gzip-compressed database #23

Closed pearsonk closed 3 years ago

pearsonk commented 3 years ago

For systems that store the database file in compressed form, directly parse this instead of requiring an implementer to separately uncompress to disk.

Signed-off-by: Kevin Pearson kevin.pearson@ortmanconsulting.com

pearsonk commented 3 years ago

I work on a system OpenXT, based on OpenEmbedded Linux, that stores the pci.ids in compressed form. It is also stored in a location separate from the convention followed here, but I will submit a separate PR to add an option for specifying a direct path at the head of searchPaths

jaypipes commented 3 years ago

Hi @pearsonk this looks awesome, thanks very much for the patch! You will need to rebase, though, since I merged a quick err-catching fix from @martinkennelly this morning.

Thanks again! -jay

Never mind, looks like this is conflict-free. Merging...