[yum-commits] debuginfo-install.py
skvidal at osuosl.org
skvidal at osuosl.org
Thu Oct 29 15:56:52 UTC 2009
debuginfo-install.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit f55fe0717b4b2f65f989d16664d161673fc74a11
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Thu Oct 29 11:55:56 2009 -0400
catch the repo setup failure when we're adding the -debuginfo repos and report it
fixes rh bug: https://bugzilla.redhat.com/show_bug.cgi?id=531743
diff --git a/debuginfo-install.py b/debuginfo-install.py
index 7090d92..6ff5b8a 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -73,7 +73,13 @@ class DebugInfoInstall(YumUtilBase):
self.logger.log(yum.logginglevels.INFO_2,
_('enabling %s') % r.id)
r.enable()
- self.doRepoSetup(thisrepo=r.id)
+ try:
+ self.doRepoSetup(thisrepo=r.id)
+ except RepoError, e:
+ self.logger.critical("Could not access repo %s error was: %s" %
+ (r.id, to_unicode(str(e))))
+ sys.exit(1)
+
#r.setup(self.conf.cache, self.mediagrabber)
self.debugInfo_main()
More information about the Yum-commits
mailing list