[Yum-devel] [PATCH] minor change so that if there are any empty lines in the gpgkey file we're checking that we don't traceback.
Seth Vidal
skvidal at fedoraproject.org
Tue Mar 30 20:55:31 UTC 2010
We won't find a key, but at least we don't traceback b/c of it.
apparently this can happen if the key we're handed is only a subkey.
---
yum/pgpmsg.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yum/pgpmsg.py b/yum/pgpmsg.py
index f8dccdb..454768a 100644
--- a/yum/pgpmsg.py
+++ b/yum/pgpmsg.py
@@ -1214,7 +1214,7 @@ a PGP "certificate" includes a public key, user id(s), and signature.
continue
# are we at the checksum line?
- if l[0] == '=' :
+ if l and l[0] == '=' :
# get the checksum number
csum = base64.decodestring(l[1:5])
i = 0
--
1.6.6
More information about the Yum-devel
mailing list