[Yum-devel] [PATCH] Ignore old repomd.xml files if they fail to parse, BZ 520614.
James Antill
james at and.org
Fri Sep 18 15:59:46 UTC 2009
---
yum/yumRepo.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index fac218a..367a68e 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1034,6 +1034,8 @@ class YumRepository(Repository, config.RepoConf):
old_local = local + '.old.tmp' # locked, so this is ok
shutil.copy2(local, old_local)
xml = self._parseRepoXML(old_local, True)
+ if xml is None:
+ return None
self._oldRepoMDData = {'old_repo_XML' : xml, 'local' : local,
'old_local' : old_local, 'new_MD_files' : []}
return xml
--
1.6.2.5
More information about the Yum-devel
mailing list