mirror of
https://github.com/clearlinux/common.git
synced 2026-09-05 21:21:41 +00:00
Not setting "keepcache=1" results to DNF removing cached RPMs after every local build. Also, naming the cachedir "/var/cache/dnf" is important for the cache to stick around and be stored in /var/cache/mock/clear/dnf_cache. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
46 lines
994 B
INI
46 lines
994 B
INI
config_opts['root'] = 'clear'
|
|
config_opts['target_arch'] = 'x86_64'
|
|
config_opts['legal_host_arches'] = ('x86_64',)
|
|
config_opts['chroot_setup_cmd'] = 'groupinstall build srpm-build'
|
|
config_opts['dist'] = 'clear' # only useful for --resultdir variable subst
|
|
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
|
|
config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s %(user)s'
|
|
config_opts['plugin_conf']['ccache_enable'] = False
|
|
config_opts['releasever'] = 'clear'
|
|
config_opts['package_manager'] = 'dnf'
|
|
|
|
|
|
config_opts['dnf.conf'] = """
|
|
|
|
[main]
|
|
cachedir=/var/cache/dnf
|
|
keepcache=1
|
|
debuglevel=1
|
|
reposdir=/dev/null
|
|
logfile=/var/log/dnf.log
|
|
retries=20
|
|
obsoletes=1
|
|
gpgcheck=0
|
|
assumeyes=1
|
|
syslog_ident=mock
|
|
syslog_device=
|
|
|
|
# repos
|
|
|
|
|
|
[local]
|
|
name=local
|
|
baseurl=https://cdn.download.clearlinux.org/current/x86_64/os/
|
|
gpgcheck=0
|
|
cost=2000
|
|
enabled=1
|
|
|
|
|
|
[debuginfo]
|
|
name=debuginfo
|
|
baseurl=https://cdn.download.clearlinux.org/current/x86_64/debug/
|
|
gpgcheck=0
|
|
cost=2000
|
|
enabled=1
|
|
"""
|