[Yum-devel] [PATCH] Ignore old repomd.xml files if they fail to parse, BZ 520614.
Seth Vidal
skvidal at fedoraproject.org
Fri Sep 18 18:28:51 UTC 2009
On Fri, 18 Sep 2009, James Antill wrote:
> ---
> 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
ACKaroonie.
How did the system GET that way?
nevermind - I don't think I want to know.
-sv
More information about the Yum-devel
mailing list