[yum-git] Branch 'yum-3_2_X' - yum/yumRepo.py

James Antill james at linux.duke.edu
Fri Aug 8 15:53:15 UTC 2008


 yum/yumRepo.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6885eb3491ad658c71b48219a81cdcf3a78ac9f1
Author: James Antill <james at and.org>
Date:   Fri Aug 8 11:53:11 2008 -0400

    Add test for no pygpgme, and give useful error message

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index dc98f81..b2f342e 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1111,6 +1111,9 @@ class YumRepository(Repository, config.RepoConf):
         
         if self.repo_gpgcheck:
 
+            if misc.gpgme is None:
+                raise URLGrabError(-1, 'pygpgme is not working so repomd.xml can not be verified for %s' % (self))
+
             sigfile = self.cachedir + '/repomd.xml.asc'
             try:
                 result = self._getFile(relative='repodata/repomd.xml.asc',



More information about the Yum-cvs-commits mailing list