Skip to content

Commit

Permalink
dnf5: configure system_cachedir for dnf5
Browse files Browse the repository at this point in the history
With DNF5, the cache directory for root is now configured via
`system_cachedir`.  Dnf4 seems to silently ignore this config option.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2256945
Relates: rpm-software-management/dnf5#1150
  • Loading branch information
praiskup committed Jan 9, 2024
1 parent 2ae527d commit c242455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mock-core-configs/etc/mock/templates/fedora-branched.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ config_opts['bootstrap_image'] = 'registry.fedoraproject.org/fedora:{{ releaseve
config_opts['dnf.conf'] = """
[main]
keepcache=1
system_cachedir=/var/cache/dnf
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
Expand Down
1 change: 1 addition & 0 deletions mock-core-configs/etc/mock/templates/fedora-rawhide.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config_opts['description'] = 'Fedora Rawhide'
config_opts['dnf.conf'] = """
[main]
keepcache=1
system_cachedir=/var/cache/dnf
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
Expand Down

0 comments on commit c242455

Please sign in to comment.