From 4cf1b0e236245ebd89dafdcdbf1a0ff7d98fc677 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 20 Jan 2014 13:54:58 +0100 Subject: [PATCH] No static name for shared mock environment As we can have multiple mock shared environments, we cannot share their identifiers. TODO: We need to find a way how to clean the caches. --- lib/Fedora/Rebuild/Mock.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Fedora/Rebuild/Mock.pm b/lib/Fedora/Rebuild/Mock.pm index 1801c82..16cbed3 100644 --- a/lib/Fedora/Rebuild/Mock.pm +++ b/lib/Fedora/Rebuild/Mock.pm @@ -121,17 +121,16 @@ sub config_file { config_opts['plugin_conf']['ccache_enable'] = True config_opts['plugin_conf']['yum_cache_enable'] = True config_opts['plugin_conf']['root_cache_enable'] = True -config_opts['root'] = 'fedorarebuild-$arch' FILE } else { print $fh <<"FILE"; config_opts['plugin_conf']['ccache_enable'] = False config_opts['plugin_conf']['yum_cache_enable'] = False config_opts['plugin_conf']['root_cache_enable'] = False -config_opts['root'] = 'fedorarebuild-$arch-$dir' FILE } print $fh <<"FILE"; +config_opts['root'] = 'fedorarebuild-$arch-$dir' config_opts['target_arch'] = '$arch' config_opts['legal_host_arches'] = ('$arch',) config_opts['chroot_setup_cmd'] = 'groupinstall $install_group' -- 2.11.4.GIT