You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2022/07/15 10:30:35 UTC
svn commit: r1902729 - /subversion/trunk/tools/dist/release.py
Author: danielsh
Date: Fri Jul 15 10:30:35 2022
New Revision: 1902729
URL: http://svn.apache.org/viewvc?rev=1902729&view=rev
Log:
* tools/dist/release.py
(get_keys): Give a local variable a meaningful name in preparation for adding
another NamedTemporaryFile instance.
.
While there, wrap to 80 columns.
Modified:
subversion/trunk/tools/dist/release.py
Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1902729&r1=1902728&r2=1902729&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Fri Jul 15 10:30:35 2022
@@ -1469,10 +1469,14 @@ def check_sigs(args):
def get_keys(args):
'Import the LDAP-based KEYS file to gpg'
- with tempfile.NamedTemporaryFile() as tmpfile:
+ with tempfile.NamedTemporaryFile() as keysfile:
keyspath = tmpfile.name
- subprocess.check_call([os.path.dirname(__file__) + '/make-keys.sh', '-c', os.path.dirname(__file__) + '/../../COMMITTERS', '-o', keyspath])
- subprocess.check_call(['gpg', '--import', keyspath])
+ subprocess.check_call([
+ os.path.dirname(__file__) + '/make-keys.sh',
+ '-c', os.path.dirname(__file__) + '/../../COMMITTERS',
+ '-o', keysfile.name,
+ ])
+ subprocess.check_call(['gpg', '--import', keysfile.name])
def add_to_changes_dict(changes_dict, audience, section, change, revision):
# Normalize arguments