You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2023/01/19 13:41:42 UTC
[lucene] branch main updated: update releaseWizard.py to support offline gpg key (#12085)
This is an automated email from the ASF dual-hosted git repository.
javanna pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new fa5dcbad9fb update releaseWizard.py to support offline gpg key (#12085)
fa5dcbad9fb is described below
commit fa5dcbad9fbf48e41c00dea1f091acdcad769946
Author: Michael Gibney <mi...@michaelgibney.net>
AuthorDate: Thu Jan 19 08:41:35 2023 -0500
update releaseWizard.py to support offline gpg key (#12085)
porting analogous change from solr: https://github.com/apache/solr/pull/1288
---
dev-tools/scripts/releaseWizard.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-tools/scripts/releaseWizard.py b/dev-tools/scripts/releaseWizard.py
index be9d6e484eb..b57eefb50d9 100755
--- a/dev-tools/scripts/releaseWizard.py
+++ b/dev-tools/scripts/releaseWizard.py
@@ -1131,14 +1131,14 @@ def configure_pgp(gpg_todo):
res = run("gpg --list-secret-keys %s" % gpg_fingerprint)
print("Found key %s on your private gpg keychain" % gpg_id)
# Check rsa and key length >= 4096
- match = re.search(r'^sec +((rsa|dsa)(\d{4})) ', res)
+ match = re.search(r'^sec#? +((rsa|dsa)(\d{4})) ', res)
type = "(unknown)"
length = -1
if match:
type = match.group(2)
length = int(match.group(3))
else:
- match = re.search(r'^sec +((\d{4})([DR])/.*?) ', res)
+ match = re.search(r'^sec#? +((\d{4})([DR])/.*?) ', res)
if match:
type = 'rsa' if match.group(3) == 'R' else 'dsa'
length = int(match.group(2))