You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2021/10/19 22:06:38 UTC
[lucene] branch main updated: LUCENE-9997: write release revision
to system temp dir (#394)
This is an automated email from the ASF dual-hosted git repository.
tomoko 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 54418ce LUCENE-9997: write release revision to system temp dir (#394)
54418ce is described below
commit 54418cef450afa8a2e45904f68c6db45e241c584
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Wed Oct 20 07:06:30 2021 +0900
LUCENE-9997: write release revision to system temp dir (#394)
---
dev-tools/scripts/buildAndPushRelease.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.py
index 6239bc7..a3ce1f0 100755
--- a/dev-tools/scripts/buildAndPushRelease.py
+++ b/dev-tools/scripts/buildAndPushRelease.py
@@ -30,6 +30,7 @@ import xml.etree.ElementTree as ET
import scriptutil
LOG = '/tmp/release.log'
+REV_FILE = '/tmp/lucene-rev.txt'
dev_mode = False
def log(msg):
@@ -114,7 +115,7 @@ def prepare(root, version, gpg_key_id, gpg_password, gpg_home=None, sign_gradle=
rev = getGitRev()
print(' git rev: %s' % rev)
log('\nGIT rev: %s\n' % rev)
- with open('rev.txt', mode='wb') as f:
+ with open(REV_FILE, mode='wb') as f:
f.write(rev.encode('UTF-8'))
print(' Check DOAP files')
@@ -399,7 +400,7 @@ def main():
rev = prepare(c.root, c.version, c.key_id, c.key_password, gpg_home=gpg_home, sign_gradle=c.sign_method_gradle)
else:
os.chdir(c.root)
- rev = open('rev.txt', encoding='UTF-8').read()
+ rev = open(REV_FILE, encoding='UTF-8').read()
if c.push_local:
url = pushLocal(c.version, c.root, rev, c.rc_num, c.push_local)