Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group transactions: fail on missing non-optional packages #1848

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 8, 2022

  1. Group transactions: optionally report missing group packages

    This modifies `base.resolve()` so a caller may pass in a dict.
    If so, the dict will be populated with information on any
    'missing' group packages: that is, cases where a group that
    was included in the transaction specifies a package name, but
    no package by that name could be found in the repositories.
    
    The dict has four keys matching the four libcomps package
    'types', and the value for each key is a list of the missing
    package names of that type (if any).
    
    The intent of this change is to enable callers to treat
    missing group packages as a fatal error (or do anything else
    they like with the information), without changing default
    behaviour, API, or the behaviour of the dnf CLI.
    
    Links to some of the the history behind this change:
    https://bugzilla.redhat.com/show_bug.cgi?id=1292892
    https://bugzilla.redhat.com/show_bug.cgi?id=1427365
    https://bugzilla.redhat.com/show_bug.cgi?id=1461539
    rpm-software-management#1038
    
    Signed-off-by: Adam Williamson <[email protected]>
    AdamWill committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    25ba11e View commit details
    Browse the repository at this point in the history