From ea0f047e1b390510556be9fc453782ef63976207 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Mon, 16 Dec 2019 14:15:09 +0100 Subject: [PATCH] Fix typo sig_typ -> sig_type (RhBug:1778763) https://bugzilla.redhat.com/show_bug.cgi?id=1778763 --- yum/pgpmsg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yum/pgpmsg.py b/yum/pgpmsg.py index dae60c9..d3d30a1 100644 --- a/yum/pgpmsg.py +++ b/yum/pgpmsg.py @@ -983,7 +983,7 @@ be scanned to make sure they are valid for a pgp certificate.""" # bind it to the key while pkt_idx < len(pkts) and pkts[pkt_idx].pkt_typ == CTB_PKT_SIG : if pkts[pkt_idx].sig_type not in (SIG_TYPE_PK_USER_GEN, SIG_TYPE_PK_USER_PER, SIG_TYPE_PK_USER_CAS, SIG_TYPE_PK_USER_POS, SIG_TYPE_CERT_REVOKE) : - raise ValueError('signature %d doesn\'t bind user_id to key, is %s' % (pkt_idx, map_to_str(sig_type_to_str, pkts[pkt_idx].sig_typ))) + raise ValueError('signature %d doesn\'t bind user_id to key, is %s' % (pkt_idx, map_to_str(sig_type_to_str, pkts[pkt_idx].sig_type))) user_id.append(pkts[pkt_idx]) @@ -1078,7 +1078,7 @@ be scanned to make sure they are valid for a pgp certificate.""" if pkt_idx >= len(pkts) : raise ValueError('subkey at index %d was not followed by a signature' % (pkt_idx-1)) if pkts[pkt_idx].pkt_typ != CTB_PKT_SIG or pkts[pkt_idx].sig_type != SIG_TYPE_SUBKEY_BIND : - raise ValueError('signature %d doesn\'t bind subkey to key, type is %s' % (pkt_idx, map_to_str(sig_type_to_str, pkts[pkt_idx].sig_typ))) + raise ValueError('signature %d doesn\'t bind subkey to key, type is %s' % (pkt_idx, map_to_str(sig_type_to_str, pkts[pkt_idx].sig_type))) subkey.append(pkts[pkt_idx]) pkt_idx = pkt_idx + 1 -- libgit2 0.28.5