cavaliergopher / rpm

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

rpminfo does not output the rpm signature #25

Closed nwoodmsft closed 2 years ago

nwoodmsft commented 3 years ago

Using latest master branch to try the rpminfo tool. I compiled the code and ran the tool on a few signed rpm's and I noticed that all the info is correct aside from the signature field is blank:

With rpminfo tool:

...
Version     : 4.4.2
Release     : 1.1
Architecture: x86_64
Group       : System Environment/Base
Size        : 3823602
License     : MPLv2.0
Signature   : 

Same rpm package but output from "rpm -qpi <path to .rpm>"

Version     : 4.4.2
Release     : 1.1
Architecture: x86_64
Install Date: (not installed)
Group       : System Environment/Base
Size        : 3823602
License     : MPLv2.0
Signature   : RSA/SHA256, Sun 06 Sep 2020 11:42:23 PM PDT, Key ID 0cd9fed32135ce40
cavaliercoder commented 2 years ago

Hey I fixed this a while back but neglected to reply. Check it out. Thanks for raising this.