[Yum-devel] [PATCH 3/4] Show a warning when metadata download fails

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


---
 yum/yumRepo.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index d847523..eb4cd3d 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1627,8 +1627,9 @@ Insufficient space in download directory %s
                                   text=text,
                                   cache=self.http_caching == 'all',
                                   size=thisdata.size)
-        except (Errors.NoMoreMirrorsRepoError, Errors.RepoError):
+        except (Errors.NoMoreMirrorsRepoError, Errors.RepoError), e:
             if retrieve_can_fail:
+                logger.warning(unicode(e))
                 return None
             raise
         except URLGrabError, e:
-- 
1.7.4.4



More information about the Yum-devel mailing list