summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-05-05 12:36:59 -0500
committerClark Williams <williams@redhat.com>2010-05-05 12:48:04 -0500
commit32c08df67996853f0d671c7e2d2d8ae53de0ddd5 (patch)
tree53c3592c0744163f8df8366fcaa44e94389f46de
parentc0ad9de006a357f93c11e0d95b13110225f846b8 (diff)
downloadmock-32c08df67996853f0d671c7e2d2d8ae53de0ddd5.tar.gz
mock-32c08df67996853f0d671c7e2d2d8ae53de0ddd5.tar.xz
mock-32c08df67996853f0d671c7e2d2d8ae53de0ddd5.zip
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 <skvidal@fedoraproject.org> Signed-off-by: Clark Williams <williams@redhat.com> (cherry picked from commit 78cce7c8b9d299367c7f8d8e23a63ca777a90c26)
-rw-r--r--py/mock/plugins/yum_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock/plugins/yum_cache.py b/py/mock/plugins/yum_cache.py
index 2e12b3f..109f3e0 100644
--- a/py/mock/plugins/yum_cache.py
+++ b/py/mock/plugins/yum_cache.py
@@ -78,7 +78,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