-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
rpmdbCookie
from librpm, remove hawkey.Sack._rpmdb_version
`dnf_sack_get_rpmdb_version` function that computed the hash of installed packages was removed. `rpmdbCookie` function from librpm is used in context part of libdnf instead. The private Python function `hawkey.Sack._rpmdb_version()` was removed too. It was used by DNF. The new version of DNF uses `rpm.TransactionSet.dbCookie()` function from librpm, which wraps the `rpmdbCookie` function. So the same librpm function will be used in context part of libdnf (e.g. by microdnf) and in the DNF. `rpmdbCookie` funkcion is safer. It also detect reinstalation of package as a change. That will be needed in the future to determining if the libsolv cache is still valid. It also solves the libdnf problem with SHA1 in FIPS mode. = changelog = msg: Use `rpmdbCookie` from librpm, remove `hawkey.Sack._rpmdb_version` type: bugfix related: https://bugzilla.redhat.com/show_bug.cgi?id=2043476
- Loading branch information
Showing
6 changed files
with
30 additions
and
87 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