For context, see https://pagure.io/koji/issue/4200
If an rpm has duplicate tags in a header, Koji would miscalculate the start of that data store.
Fixes https://pagure.io/koji/issue/4203
1 new commit added
fix misleading comment
:thumbsup:
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
testing notes
Testing the code directly is fairly straightforward. E.g. if I use the problem rpm, I get:
>>> import koji >>> fn='/home/mikem/wu-ftpd-2.6.1-20.src.rpm' >>> sighdr = koji.rip_rpm_sighdr(fn) >>> rawhdr = koji.RawHeader(sighdr) >>> koji.hex_string(rawhdr.get(koji.RPM_SIGTAG_MD5)) 'f75f2047ffe5b35eb3ecb6ebd80baf41'
Which matches rpm
$ rpm -qp --qf '%{sigmd5}\n' wu-ftpd-2.6.1-20.src.rpm f75f2047ffe5b35eb3ecb6ebd80baf41
Running the same code without this fix gives an incorrect sigmd5
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
Commit 177ba351 fixes this pull-request
Pull-Request has been merged by tkopecek
For context, see https://pagure.io/koji/issue/4200
If an rpm has duplicate tags in a header, Koji would miscalculate the
start of that data store.
Fixes https://pagure.io/koji/issue/4203