diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2009-03-01 22:40:19 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2009-03-27 09:37:46 -0500 |
commit | 1fd15ebc8f804ae8eb3702a753d30596cf6a8a02 (patch) | |
tree | 56c7de7e23f4c93f46d47d9bb9e9135b1d7a40c7 /etc | |
parent | 28027fc26d5258efe5034bb975157a3f61dfcfec (diff) | |
download | mock-1fd15ebc8f804ae8eb3702a753d30596cf6a8a02.tar.gz mock-1fd15ebc8f804ae8eb3702a753d30596cf6a8a02.tar.xz mock-1fd15ebc8f804ae8eb3702a753d30596cf6a8a02.zip |
Support configurable root cache compression
This patch adds configuration options that influence how is the root
cache compressed:
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
Motivation to do this was to be able to use lzma compression. While it
takes a long time to compress, for me it was more than two times faster
than gzip when decompressing. Since I only seldom regenerate the root cache
while doing a lot of builds, I was able to gain a considerable speed up.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mock/site-defaults.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mock/site-defaults.cfg b/etc/mock/site-defaults.cfg index 92f5562..0ee2082 100644 --- a/etc/mock/site-defaults.cfg +++ b/etc/mock/site-defaults.cfg @@ -62,6 +62,8 @@ # config_opts['plugin_conf']['root_cache_enable'] = True # config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15 # config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/" +# config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip" +# config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz" # # bind mount plugin is enabled by default but has no configured directories to mount # config_opts['plugin_conf']['bind_mount_enable'] = True |