[yum-commits] Branch 'yum-3_2_X' - yum/yumRepo.py

James Antill james at osuosl.org
Fri Sep 18 21:34:05 UTC 2009


 yum/yumRepo.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 1a67704ec7b47ce175d4edd3176317d0577deed5
Author: James Antill <james at and.org>
Date:   Fri Sep 18 11:57:41 2009 -0400

    Ignore old repomd.xml files if they fail to parse, BZ 520614.

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


More information about the Yum-commits mailing list