You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by iw...@apache.org on 2022/07/12 11:04:32 UTC

[hadoop] branch branch-3.2 updated: HADOOP-18334. Fix create-release to address removal of GPG_AGENT_INFO in branch-3.2. (#4554)

This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 61e3ad6533c HADOOP-18334. Fix create-release to address removal of GPG_AGENT_INFO in branch-3.2. (#4554)
61e3ad6533c is described below

commit 61e3ad6533c5a1cb72b06ab7a59111ed1ff930a7
Author: Masatake Iwasaki <iw...@apache.org>
AuthorDate: Tue Jul 12 20:04:21 2022 +0900

    HADOOP-18334. Fix create-release to address removal of GPG_AGENT_INFO in branch-3.2. (#4554)
---
 dev-support/bin/create-release | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release
index f0874fd7fd5..b7145587b6e 100755
--- a/dev-support/bin/create-release
+++ b/dev-support/bin/create-release
@@ -249,7 +249,9 @@ function startgpgagent
       eval $("${GPGAGENT}" --daemon \
         --options "${LOGDIR}/gpgagent.conf" \
         --log-file="${LOGDIR}/create-release-gpgagent.log")
-      GPGAGENTPID=$(echo "${GPG_AGENT_INFO}" | cut -f 2 -d:)
+      GPGAGENTPID=$(pgrep "${GPGAGENT}")
+      GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:$GPGAGENTPID:1"
+      export GPG_AGENT_INFO
     fi
 
     if [[ -n "${GPG_AGENT_INFO}" ]]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org