forked from rpm-software-management/libdnf
-
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.
[transaction] Add DNF_TRANSACTION_FLAG_DISABLE_SWDB
Not all users of libdnf really need the functionality added by the SWDB database. This is especially true for rpm-ostree-based variants of Fedora and RHEL, which only use libdnf for composing on the server and package layering on the client. Some major differences that render the SWDB not useful for rpm-ostree: - rpm-ostree already keeps track of requested packages in a separate database (really, text file). - rpm-ostree always applies package installs from scratch on top of the base OSTree, so the concept of history is simply different (see e.g. coreos/rpm-ostree#1489). - rpm-ostree updates are performed offline, i.e. not on the live system. As such, we don't need to track the state of the RPM transaction as it happens in a separate database. If librpm throws an error, we just throw out the whole offline rootfs. - OSTree commits themselves already contain the list of packages that were installed in them, so that we can consult the commit metadata (or even the rpmdb directly) if we need to render the RPM diff on a system or OSTree branch.
- Loading branch information
Showing
2 changed files
with
44 additions
and
23 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