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

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to