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 05fe245
Show file tree
Hide file tree
Showing 2 changed files with 12 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
5 changes: 5 additions & 0 deletions releng/release-notes-next/f40-dnf5.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Per the approved [Fedora 40 change](https://fedoraproject.org/wiki/Changes/BuildWithDNF5),
[we switched][PR#1332] the default `package_manager` configuration
for Fedora 40 or newer to `dnf5`.
This was previously done when Fedora 40 was Rawhide,
but it [regressed][rhbz#123456] when Fedora 40 branched.

0 comments on commit 05fe245

Please sign in to comment.