Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression reading rpm v3 and other rare packages (#1635)
Commit d6a86b5 introduced far stricter checks on what tags are allowed in signature and main headers than rpm had previously seen, and unsurprisingly this introduced some regressions on less common cases: - On rpm v3 packages and some newer 3rd party created packages (such as install4j < 9.0.2), RPMTAG_ARCHIVESIZE resides in the main header to begin with - In rpm 4.13 - 4.14, file IMA signatures were incorrectly placed in the main header. As a quirk, permit the existence of RPMTAG_ARCHIVESIZE, RPMTAG_FILESIGNATURES and RPMTAG_FILESIGNATURELENGTH in the main header too provided that the corresponding signature tag is not there (so they can reside in either but not both headers). Initial workaround patch by Demi Marie Obenour. Fixes: #1635
- Loading branch information