[Yum-devel] [PATCH 2/4] Better 'Cannot retrieve repository metadata' error reporting

Zdeněk Pavlas zpavlas at redhat.com
Tue Aug 9 12:47:03 UTC 2011


Show the exception text (reason why _loadRepoXML() has failed).
---
 yum/yumRepo.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 7375813..d847523 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1466,6 +1466,7 @@ Insufficient space in download directory %s
         try:
             self._loadRepoXML(text=self)
         except Errors.RepoError, e:
+            logger.error(unicode(e))
             msg = ("Cannot retrieve repository metadata (repomd.xml) for repository: %s. "
                   "Please verify its path and try again" % self )
             raise Errors.RepoError, msg
-- 
1.7.4.4



More information about the Yum-devel mailing list