repoman: allow 40 digit gpg key
authorZac Medico <zmedico@gentoo.org>
Tue, 16 Oct 2012 22:35:03 +0000 (15:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 16 Oct 2012 22:35:03 +0000 (15:35 -0700)
bin/repoman

index c59791c76fadfd272e1709c31006a71fb8a10a32..a959106415c3150bd3e32843fc92f5fa339804ee 100755 (executable)
@@ -88,7 +88,7 @@ util.initialize_logger()
 max_desc_len = 100
 allowed_filename_chars="a-zA-Z0-9._-+:"
 pv_toolong_re = re.compile(r'[0-9]{19,}')
-GPG_KEY_ID_REGEX = r'(0x)?([0-9a-fA-F]{8}|[0-9a-fA-F]{16}|[0-9a-fA-F]{24}|[0-9a-fA-F]{32})!?'
+GPG_KEY_ID_REGEX = r'(0x)?([0-9a-fA-F]{8}|[0-9a-fA-F]{16}|[0-9a-fA-F]{24}|[0-9a-fA-F]{32}|[0-9a-fA-F]{40})!?'
 bad = create_color_func("BAD")
 
 # A sane umask is needed for files that portage creates.