Blame SOURCES/BZ-1063177-xml-traceback.patch

bb45c0
commit 6132fa0c489f85c93ce77587ae3db4930d5bb1a4
bb45c0
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
bb45c0
Date:   Tue May 26 11:16:00 2015 +0200
bb45c0
bb45c0
    Don't traceback on xml parsing. BZ#1063177
bb45c0
bb45c0
diff --git a/yum/repos.py b/yum/repos.py
bb45c0
index d5e50ac..a0ef28c 100644
bb45c0
--- a/yum/repos.py
bb45c0
+++ b/yum/repos.py
bb45c0
@@ -381,6 +381,13 @@ class RepoStorage:
bb45c0
             sack = repo.getPackageSack()
bb45c0
             try:
bb45c0
                 sack.populate(repo, mdtype, callback, cacheonly)
bb45c0
+            except TypeError, e:
bb45c0
+                if not e.args[0].startswith('Parsing'):
bb45c0
+                    raise
bb45c0
+                if mdtype in ['all', 'metadata'] and repo.skip_if_unavailable:
bb45c0
+                    self.disableRepo(repo.id)
bb45c0
+                else:
bb45c0
+                    raise Errors.RepoError(e.args[0])
bb45c0
             except Errors.RepoError, e:
bb45c0
                 if mdtype in ['all', 'metadata'] and repo.skip_if_unavailable:
bb45c0
                     self.disableRepo(repo.id)