summaryrefslogtreecommitdiffstats
path: root/py/mock/plugins/root_cache.py
diff options
context:
space:
mode:
authorPaul Howarth <paul@city-fan.org>2010-08-11 11:53:59 +0100
committerClark Williams <williams@redhat.com>2010-08-12 10:57:35 -0500
commit942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf (patch)
tree4dc3930b89b6c0161cca72bbd68326016d5f5285 /py/mock/plugins/root_cache.py
parent03cb001e8d3b2d629c879ba723afcd2b187675b2 (diff)
downloadmock-942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf.tar.gz
mock-942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf.tar.xz
mock-942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf.zip
Exclude bind-mounted cache dirs from root cache
Including the ccache directory /tmp/ccache and the yum cache directory /var/cache/yum in the root cache is unnecessary and can lead to the root cache tarball being an order of magnitude larger and taking 10 minutes or more to tar and compress even on a fast PC. Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'py/mock/plugins/root_cache.py')
-rw-r--r--py/mock/plugins/root_cache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mock/plugins/root_cache.py b/py/mock/plugins/root_cache.py
index 8bcff23..60b8138 100644
--- a/py/mock/plugins/root_cache.py
+++ b/py/mock/plugins/root_cache.py
@@ -118,6 +118,8 @@ class RootCache(object):
"--exclude=./proc",
"--exclude=./sys",
"--exclude=./dev",
+ "--exclude=./tmp/ccache",
+ "--exclude=./var/cache/yum",
"."],
shell=False
)