Open mharvey-jt opened 3 years ago
Are you sure? According to https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-package-structure.html
The RPMTAG_SIZE tag holds the size of all the regular files in the payload
Doesn't the error actually mean that the cpio size is incorrect?
Also, is this the same as #61? Does it happen only with certain compression algos?
Interesting, I hadn't found the spec, but rather come to that conclusion by comparison with distro rpms.
Hi,
The size of the payload written to the Size header is incorrect. It should be the length of the compressed payload, not the sun of the sizes of the uncompressed payload files. This makes the rpm2cpio program exit with a failure, as it does a comparison between the header value and that returned by librpm's
ufdCopy()
function.