[Yum-devel] [PATCH] Don't traceback on baseurl only repos. which have network failures, BZ 525094

James Antill james at and.org
Wed Sep 23 14:27:16 UTC 2009


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

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index d860ef9..daf8095 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -798,7 +798,7 @@ class YumRepository(Repository, config.RepoConf):
                                     )
             except URLGrabError, e:
                 errstr = "failed to retrieve %s from %s\nerror was %s" % (relative, self.id, e)
-                if self.mirrorurls:
+                if hasattr(self, 'mirrorurls'):
                     errstr +="\n  You could try running: yum clean expire-cache"
                     errstr +="\n  To get a new set of mirrors."
                 if e.errno == 256:
-- 
1.6.2.5



More information about the Yum-devel mailing list