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

dnf5: set releasever in the base object's vars #1379

Closed
wants to merge 1 commit into from

Commits on Feb 14, 2024

  1. dnf5: set releasever in the base object's vars

    With Fedora 40 now branched, openQA installer build tests started
    failing with an error:
    
      RuntimeError: cannot open file: (2) - No such file or directory [/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-x86_64]
    
    it seems like setting releasever via set_substitutions just does
    not fully work as expected, and libdnf goes looking for a file
    with a literal `$releasever` in it based on the gpgkey line in
    the repo file. Though it seems like the releasever substitution
    must work to *some* extent because we at least manage to resolve
    and download packages before the failure.
    
    This seems to fix it, anyhow, and is based on code from libdnf5
    itself in dnf5/main.cpp RootCommand::set_argument_parser() .
    
    Signed-off-by: Adam Williamson <[email protected]>
    AdamWill committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    acee48f View commit details
    Browse the repository at this point in the history