Blame SOURCES/BZ-1778763-fix-typo-sig_typ-sig_type.patch

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