Skip to content

Commit

Permalink
Use dnf5 on Fedora 40+
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Feb 16, 2024
1 parent 6e3f44e commit 2692b9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mock-core-configs/etc/mock/templates/fedora-branched.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ config_opts['chroot_setup_cmd'] = 'install @{% if mirrored %}buildsys-{% endif %

config_opts['dist'] = 'fc{{ releasever }}' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]

{% if releasever | int >= 40 %}
# https://fedoraproject.org/wiki/Changes/BuildWithDNF5
config_opts['package_manager'] = 'dnf5'
{% else %}
config_opts['package_manager'] = 'dnf'
{% endif %}

config_opts['bootstrap_image'] = 'registry.fedoraproject.org/fedora:{{ releasever }}'

config_opts['dnf.conf'] = """
Expand Down

0 comments on commit 2692b9c

Please sign in to comment.