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 58ea430
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mock-core-configs/etc/mock/templates/fedora-branched.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ 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', ]
config_opts['package_manager'] = 'dnf'

# https://fedoraproject.org/wiki/Changes/BuildWithDNF5 for Fedora 40+
config_opts['package_manager'] = '{% if releasever|int >= 40 %}dnf5{% else %}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#2264535] when Fedora 40 branched.

0 comments on commit 58ea430

Please sign in to comment.