[Yum-devel] [PATCH] Unbreak checkGPGKey()
Panu Matilainen
pmatilai at laiskiainen.org
Tue Feb 15 09:27:09 UTC 2011
repo.gpgkey is a list, not a string, since at least 2005
---
yumcommands.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yumcommands.py b/yumcommands.py
index 45cd209..f196477 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -46,7 +46,7 @@ def checkRootUID(base):
def checkGPGKey(base):
if not base.gpgKeyCheck():
for repo in base.repos.listEnabled():
- if (repo.gpgcheck or repo.repo_gpgcheck) and repo.gpgkey == '':
+ if (repo.gpgcheck or repo.repo_gpgcheck) and not repo.gpgkey:
msg = _("""
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
--
1.7.4
More information about the Yum-devel
mailing list