From c2424553880f56afd3facc2e42b51fd9a0b7c067 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 8 Jan 2024 07:00:43 +0100 Subject: [PATCH] dnf5: configure system_cachedir for dnf5 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: https://github.com/rpm-software-management/dnf5/issues/1150 --- mock-core-configs/etc/mock/templates/fedora-branched.tpl | 1 + mock-core-configs/etc/mock/templates/fedora-rawhide.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/mock-core-configs/etc/mock/templates/fedora-branched.tpl b/mock-core-configs/etc/mock/templates/fedora-branched.tpl index 08d082f23..24eb02139 100644 --- a/mock-core-configs/etc/mock/templates/fedora-branched.tpl +++ b/mock-core-configs/etc/mock/templates/fedora-branched.tpl @@ -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 diff --git a/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl b/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl index b6796e16b..1d9efc8dd 100644 --- a/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl +++ b/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl @@ -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