diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-08-02 00:13:04 -0500 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-08-02 00:13:04 -0500 |
commit | a2fbe5b9aa9df9e55393b82b7efdba91acc38a8e (patch) | |
tree | e8825272d5a10089a23d0f4647cca342537cffe7 | |
parent | 6f3c7f0c021ec45659dcdd5226962cc019cbcd09 (diff) | |
download | mock-a2fbe5b9aa9df9e55393b82b7efdba91acc38a8e.tar.gz mock-a2fbe5b9aa9df9e55393b82b7efdba91acc38a8e.tar.xz mock-a2fbe5b9aa9df9e55393b82b7efdba91acc38a8e.zip |
BZ 250425. prevent building/rebuilding of cache file unless the build was a clean build. This should prevent the cache from getting polluted.
-rw-r--r-- | mock.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -250,7 +250,9 @@ class Root: cmd = 'update' else: cmd = '%s' % self.config['chroot_setup_cmd'] - create_cache = 1 + # never rebuild cache unless it was a clean build. + if self.config['clean']: + create_cache = 1 else: if self.config['clean']: cmd = '%s' % self.config['chroot_setup_cmd'] |