[PATCH] fix cacheReq ts_min/ts_max calculation. BZ 1039028

Zdenek Pavlas zpavlas at redhat.com
Fri Dec 6 15:16:35 UTC 2013


Don't use repo.metadata_cookie since it runs dirSetup()
and we don't want to create cachedir for disabled repo.
---
 cli.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cli.py b/cli.py
index 7f6643f..b1efcf1 100755
--- a/cli.py
+++ b/cli.py
@@ -405,7 +405,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
         ts_min = None
         ts_max = None
         for repo in self.repos.sort():
-            if not os.path.exists(repo.metadata_cookie):
+            cookie = repo.cachedir +'/'+ repo.metadata_cookie_fn
+            if not os.path.exists(cookie):
                 ts_min = None
                 break
 
-- 
1.7.11.7



More information about the Yum-devel mailing list