diff options
author | Clark Williams <williams@redhat.com> | 2010-05-05 12:36:59 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-05-05 12:36:59 -0500 |
commit | 78cce7c8b9d299367c7f8d8e23a63ca777a90c26 (patch) | |
tree | 242fd36b71005103d185092568788f624c513a48 /py | |
parent | 2a76bf8c3f47280b8c4449f32c018cbb7702d579 (diff) | |
download | mock-78cce7c8b9d299367c7f8d8e23a63ca777a90c26.tar.gz mock-78cce7c8b9d299367c7f8d8e23a63ca777a90c26.tar.xz mock-78cce7c8b9d299367c7f8d8e23a63ca777a90c26.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>
Diffstat (limited to 'py')
-rw-r--r-- | py/mock/plugins/yum_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |