diff options
| author | Michael E Brown <michael_e_brown@dell.com> | 2007-11-29 17:38:02 -0600 |
|---|---|---|
| committer | Michael E Brown <michael_e_brown@dell.com> | 2007-11-29 17:38:02 -0600 |
| commit | 242729a2cf11a749b416e4a4d2dc78ffeb87e2d9 (patch) | |
| tree | d7ffc55cb55f5981a24639654ca65fbf073fa98d /src/py-libs/plugins/yum_cache.py | |
| parent | 521025b767f54c75c55ea088d6ae305210cfbcaf (diff) | |
| download | mock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.tar.gz mock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.tar.xz mock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.zip | |
use log.info() to tell about enabled caches rather than misusing state(). the state() method should be used to say what is happening.
Diffstat (limited to 'src/py-libs/plugins/yum_cache.py')
| -rw-r--r-- | src/py-libs/plugins/yum_cache.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py-libs/plugins/yum_cache.py b/src/py-libs/plugins/yum_cache.py index 72497ff..5a4abc3 100644 --- a/src/py-libs/plugins/yum_cache.py +++ b/src/py-libs/plugins/yum_cache.py @@ -62,6 +62,7 @@ class YumCache(object): @traceLog(moduleLog) def _yumCachePreInitHook(self): + moduleLog.info("enabled yum cache") mock.util.mkdirIfAbsent(os.path.join(self.rootdir, 'var/cache/yum')) mock.util.mkdirIfAbsent(self.yumSharedCachePath) @@ -70,7 +71,7 @@ class YumCache(object): self._yumCachePreYumHook() if self.online: - self.state("enabled yum cache, cleaning yum metadata") + self.state("cleaning yum metadata") for (dirpath, dirnames, filenames) in os.walk(self.yumSharedCachePath): for filename in filenames: fullPath = os.path.join(dirpath, filename) |
