From 9988126185fb4152a18f83bcd7b8a5e551830720 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jun 05 2019 08:28:28 +0000 Subject: copr: don't disable yum/dnf caches We re-use the mock profile several times during one package build, and it doesn't make sense to re-download the repo metadata all the time. We have nowadays namespaced directory under /var/cache/mock per-build ID, so there's no risk that we'll use some very old caches because of 'max_age_days' or 'max_metadata_age_days' config options. --- diff --git a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg index 0cd74e5..b5d29c3 100644 --- a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg +++ b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg @@ -3,8 +3,6 @@ config_opts['plugin_conf']['package_state_enable'] = False config_opts['plugin_conf']['ccache_enable'] = False -config_opts['plugin_conf']['yum_cache_enable'] = False - config_opts['plugin_conf']['root_cache_enable'] = True # when used build ignores additional buildroot packages, reason unknown # config_opts['plugin_conf']['root_cache_opts']['age_check'] = False