-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package marking is enabled per image type and propagated down to the OS pipeline. The package marking information is output by `dnf-json` based on what `dnf` gave as reasons during the depsolve transactions. This is stored on the `rpmmd.PackageSpec`. Note that we currently output 'user' for any 'group'-installed package. There's also a bit of complication here; as `dnf-json` does chain depsolving it marks all packages from the previous transaction for `install`. This leads to all packages from the previous transaction being marked as `user`-installed. To circumvent this we keep track of the reasons a package was selected and the oldest one wins. Another complication is that a package could be initially resolved as a dependency but be user-requested in a follow up transaction. Some logic is involved to allow upgrades from dependency and weak-dependency to user. We also blanket-allow upgrading weak-dependency to dependency. Initially package marking is enabled only for the `fedora` `liveImage` type which contains all disk images. These all use the `os` pipeline in which package marking has now been enabled. We only enable package marking in (current) rawhide.
- Loading branch information
Showing
9 changed files
with
238 additions
and
129 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
Oops, something went wrong.