[yum-commits] cli.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Mon Jan 20 13:03:47 UTC 2014
cli.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6fc17c81771769649aca1d51a29df9fb243b6895
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Mon Jan 20 14:01:42 2014 +0100
_set_repos_cache_req(): Handle missing cachedir. BZ 1044080
diff --git a/cli.py b/cli.py
index 5b44b2c..c8884ae 100755
--- a/cli.py
+++ b/cli.py
@@ -412,11 +412,11 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
ts_min = None
ts_max = None
for repo in self.repos.listEnabled():
- if not os.path.exists(repo.metadata_cookie):
+ try: rts = os.stat(repo.metadata_cookie).st_mtime
+ except (yum.Errors.RepoError, OSError):
ts_min = None
break
- rts = os.stat(repo.metadata_cookie).st_mtime
if not ts_min:
ts_min = rts
ts_max = rts
More information about the Yum-commits
mailing list