[PATCH 3/5] Exclude bind-mounted cache dirs from root cache
Paul Howarth
paul at city-fan.org
Wed Aug 11 10:53:59 UTC 2010
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.
---
py/mock/plugins/root_cache.py | 2 ++
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
)
--
1.7.2.1
More information about the buildsys
mailing list