Closed ktdreyer closed 7 years ago
Looks like we are also throwing away the return code from the rpm-sign invocation. We should verify that is 0
as well.
I have a branch at https://github.com/ktdreyer/merfi/tree/rpm-sign-checks . Still need to do some testing with real repos and real signing.
Ok, tested and it works.
Last week we ended up with some repos with zero-length
InRelease
files.As far as I can tell the
rpm-sign --clearsign
command failed to write anything substantive to STDOUT. I'm still investigating with the relevant teams to understand howrpm-sign
could've broken like that.In the spirit of being strict in what we output, we should probably check that
out.strip() != ''
inmerfi/backends/rpm_sign.py
before writing to the InRelease file on disk, and raiseRpmSignException
if that happens.