diff options
author | Clark Williams <williams@redhat.com> | 2010-07-14 13:15:07 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-07-27 13:58:10 -0500 |
commit | 4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940 (patch) | |
tree | 20462fd5440a8115291df106602b162ad3b12327 /py/mock/plugins/root_cache.py | |
parent | 036e4e84d7594a2f799501dc3ed173f2d6ddfcc4 (diff) | |
download | mock-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/mock/plugins/root_cache.py')
-rw-r--r-- | py/mock/plugins/root_cache.py | 3 |
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 ) |