generated from smedev/Template-for-SMEServer-Core-Perl
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 3.4.3-168.2
- python-backports-lzma compatibility. - Fix dependancies
This commit is contained in:
24
BZ-1063177-xml-traceback.patch
Normal file
24
BZ-1063177-xml-traceback.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
commit 6132fa0c489f85c93ce77587ae3db4930d5bb1a4
|
||||
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
|
||||
Date: Tue May 26 11:16:00 2015 +0200
|
||||
|
||||
Don't traceback on xml parsing. BZ#1063177
|
||||
|
||||
diff --git a/yum/repos.py b/yum/repos.py
|
||||
index d5e50ac..a0ef28c 100644
|
||||
--- a/yum/repos.py
|
||||
+++ b/yum/repos.py
|
||||
@@ -381,6 +381,13 @@ class RepoStorage:
|
||||
sack = repo.getPackageSack()
|
||||
try:
|
||||
sack.populate(repo, mdtype, callback, cacheonly)
|
||||
+ except TypeError, e:
|
||||
+ if not e.args[0].startswith('Parsing'):
|
||||
+ raise
|
||||
+ if mdtype in ['all', 'metadata'] and repo.skip_if_unavailable:
|
||||
+ self.disableRepo(repo.id)
|
||||
+ else:
|
||||
+ raise Errors.RepoError(e.args[0])
|
||||
except Errors.RepoError, e:
|
||||
if mdtype in ['all', 'metadata'] and repo.skip_if_unavailable:
|
||||
self.disableRepo(repo.id)
|
Reference in New Issue
Block a user