Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   Exclude bind-mounted cache dirs from root cache (http://www.linux-archive.org/fedora-build-system/411361-exclude-bind-mounted-cache-dirs-root-cache.html)

Paul Howarth 08-11-2010 10:53 AM

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.
---
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

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 08:16 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.