diff options
author | Clark Williams <williams@redhat.com> | 2010-07-14 16:51:16 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-07-27 13:58:29 -0500 |
commit | 4e19a85f36119b370e4b579d458450834ab8f4d6 (patch) | |
tree | 8939c42b4ac9efe2040056ae149dde4e45f06b54 | |
parent | 077a09ea6bb5a0e2ac0861210f6df528f531f6f7 (diff) | |
download | mock-4e19a85f36119b370e4b579d458450834ab8f4d6.tar.gz mock-4e19a85f36119b370e4b579d458450834ab8f4d6.tar.xz mock-4e19a85f36119b370e4b579d458450834ab8f4d6.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.py | 6 |
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 ) |