]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Do no longer use internal rpm data to get the pubkey build time
authorMichael Schroeder <mls@suse.de>
Tue, 19 May 2020 12:04:44 +0000 (14:04 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 19 May 2020 12:04:44 +0000 (14:04 +0200)
commit93ae0f79c5a166503b0d605ce8115aee7c884913
tree6dc5e0e06878c0471bd9b1c5eef185183d6beccc
parent2377205800bba3f371f415d6d794e6e244f01154
Do no longer use internal rpm data to get the pubkey build time

Using internal rpm data is just too fragile. This time the code
did not work anymore because the time in the pgpDigParams_s was
changed to a uint32_t, leading to two padding bytes being added.

Rpm's way of calculating the pubkey build time did not change
the last 10 years, so just replicate the way rpm finds the
build time in libsolv. It's simply taking the creation time
of the first signature, which is pretty broken.
CMakeLists.txt
ext/repo_pubkey.c