summaryrefslogtreecommitdiffstats
path: root/py
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-07-14 13:15:07 -0500
committerClark Williams <williams@redhat.com>2010-07-27 13:58:10 -0500
commit4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940 (patch)
tree20462fd5440a8115291df106602b162ad3b12327 /py
parent036e4e84d7594a2f799501dc3ed173f2d6ddfcc4 (diff)
downloadmock-4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940.tar.gz
mock-4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940.tar.xz
mock-4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940.zip
filter out proc,sys,and dev from cache file creation
Added --excludes to tar comand line to exclude proc, sys and dev files when creating root cache. Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'py')
-rw-r--r--py/mock/plugins/root_cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mock/plugins/root_cache.py b/py/mock/plugins/root_cache.py
index ffed12e..a178e99 100644
--- a/py/mock/plugins/root_cache.py
+++ b/py/mock/plugins/root_cache.py
@@ -115,6 +115,9 @@ class RootCache(object):
mock.util.do(
["tar"] + self.compressArgs + ["-cf", self.rootCacheFile,
"-C", self.rootObj.makeChrootPath(),
+ "--exclude=proc",
+ "--exclude=sys",
+ "--exclude=dev",
"."],
shell=False
)