From 78cce7c8b9d299367c7f8d8e23a63ca777a90c26 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Wed, 5 May 2010 12:36:59 -0500 Subject: correct mispelling of sqlite extension in yum_cache.py Yum uses .sqlite files, but the plugin was looking for .sqllite. Remove one 'l'. Reported-by: Seth Vidal Signed-off-by: Clark Williams --- py/mock/plugins/yum_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/mock/plugins/yum_cache.py b/py/mock/plugins/yum_cache.py index c43b7e1..fb16bc7 100644 --- a/py/mock/plugins/yum_cache.py +++ b/py/mock/plugins/yum_cache.py @@ -77,7 +77,7 @@ class YumCache(object): file_age_days = (time.time() - statinfo.st_ctime) / (60 * 60 * 24) # prune repodata so yum redownloads. # prevents certain errors where yum gets stuck due to bad metadata - for ext in (".sqllite", ".xml", ".bz2", ".gz"): + for ext in (".sqlite", ".xml", ".bz2", ".gz"): if filename.endswith(ext) and file_age_days > self.yum_cache_opts['max_metadata_age_days']: os.unlink(fullPath) fullPath = None -- cgit