-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rpm.TransactionSet.dbCookie() to determining if rpmdb has changed
DNF was using private method `hawkey.Sack._rpmdb_version()` from libdnf. The method computes SHA1 hash from sorted list of hashes stored in the headers of the instaled packages. And it adds prefix of the number of installed packages to the computed hash. The result was stored to the history database and used to detect changes in the rpm database. The patch uses new oficial librpm API function `rpm.TransactionSet.dbCookie()`. This is a cleaner solution. It is also a step to remove the `._rpmdb_version()` method from libdnf. It is an attempt to remove SHA1 calculations from libdnf. Troubleshooting FIPS compatibility. = changelog = msg: Use rpm.TransactionSet.dbCookie() to determining if rpmdb has changed type: bugfix resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2043476
- Loading branch information
Showing
7 changed files
with
24 additions
and
14 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
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