forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for installing v3 packages
Explicitly refuse to add packages without immutable region into transactions, effectively preventing installation of v3 packages. We still support querying and unpacking such packages, only installing is blocked because the lack of immutable region means such packages are not verifiable after installation. An unexpected gotcha here was that rpmSpecCheckDeps() executes very early on with a malleable (aka v3) header and would now fail. Run a temporary copy of the header-in-progress through headerReload() to appease rpmtsAddInstallElement(). This is obviously far from foolproof, a better check would actually verify the immutable region here but that wouldn't make it foolproof either, just a little harder to fake. Fixes: rpm-software-management#1107
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters