summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-07-14 16:51:16 -0500
committerClark Williams <williams@redhat.com>2010-07-31 14:08:46 -0500
commit1ebffcad43b0990a6cfbb13bed385957054f150d (patch)
tree0a0296d2da2299e6b995ee833be4511e7facb0f2
parentf53d11aa1b63c4fe13c522a203c166f473a8d690 (diff)
downloadmock-1ebffcad43b0990a6cfbb13bed385957054f150d.tar.gz
mock-1ebffcad43b0990a6cfbb13bed385957054f150d.tar.xz
mock-1ebffcad43b0990a6cfbb13bed385957054f150d.zip
fix cachefile generation filtering logic
The original fix to generating a cache file without /proc, /sys, and /dev entries failed due to the --exclude=sys filtering out /usr/include/sys (a bad thing). Changed the filtering excludes to include a './' prefix to avoid that little problem. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--py/mock/plugins/root_cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/mock/plugins/root_cache.py b/py/mock/plugins/root_cache.py
index a178e99..8bcff23 100644
--- a/py/mock/plugins/root_cache.py
+++ b/py/mock/plugins/root_cache.py
@@ -115,9 +115,9 @@ class RootCache(object):
mock.util.do(
["tar"] + self.compressArgs + ["-cf", self.rootCacheFile,
"-C", self.rootObj.makeChrootPath(),
- "--exclude=proc",
- "--exclude=sys",
- "--exclude=dev",
+ "--exclude=./proc",
+ "--exclude=./sys",
+ "--exclude=./dev",
"."],
shell=False
)