[Yum-devel] [PATCH 2/2] make sure we're only skipping the exception if we are doing a primary or global setup of the repos/sacks and disable it if it falls over.

Seth Vidal skvidal at fedoraproject.org
Thu Jan 14 21:49:30 UTC 2010


---
 yum/repos.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/yum/repos.py b/yum/repos.py
index e0c0452..248753e 100644
--- a/yum/repos.py
+++ b/yum/repos.py
@@ -277,8 +277,9 @@ class RepoStorage:
             try:
                 sack.populate(repo, mdtype, callback, cacheonly)
             except Errors.RepoError, e:
-                if not repo.skip_if_unavailable:
-                    
+                if mdtype in ['all', 'metadata'] and repo.skip_if_unavailable:
+                    self.disableRepo(repo.id)
+                else:
                     raise
             else:
                 self.pkgSack.addSack(repo.id, sack)
-- 
1.6.5.2



More information about the Yum-devel mailing list