diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2008-01-20 15:09:14 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2008-01-20 15:09:14 -0600 |
commit | 78d6a209b8dfe438880e4d62a58693e33693560b (patch) | |
tree | 27b4fa77cc3f6bab283dc87c1fde134ae45ae616 /py/mock/plugins/ccache.py | |
parent | 7d45de8aa01207413b615874ba58d0239f00a92e (diff) | |
download | mock-78d6a209b8dfe438880e4d62a58693e33693560b.tar.gz mock-78d6a209b8dfe438880e4d62a58693e33693560b.tar.xz mock-78d6a209b8dfe438880e4d62a58693e33693560b.zip |
get rid of one level of shell indirection where possible.
Diffstat (limited to 'py/mock/plugins/ccache.py')
-rw-r--r-- | py/mock/plugins/ccache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock/plugins/ccache.py b/py/mock/plugins/ccache.py index 77a9130..52e55fd 100644 --- a/py/mock/plugins/ccache.py +++ b/py/mock/plugins/ccache.py @@ -39,7 +39,7 @@ class CCache(object): # ccache itself manages size and settings. decorate(traceLog()) def _ccacheBuildHook(self): - self.rootObj.doChroot("ccache -M %s" % self.ccache_opts['max_cache_size']) + self.rootObj.doChroot(["ccache", "-M", str(self.ccache_opts['max_cache_size'])], shell=False) # basic idea here is that we add 'cc', 'gcc', 'g++' shell scripts to # to /tmp/ccache, which is bind-mounted from a shared location. |