You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2018/01/15 18:07:44 UTC

yetus git commit: YETUS-598. jira_locate_patch does not work after the update of ASF JIRA.

Repository: yetus
Updated Branches:
  refs/heads/master 34b1ff77c -> a74b317e6


YETUS-598. jira_locate_patch does not work after the update of ASF JIRA.

Signed-off-by: Allen Wittenauer <aw...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/a74b317e
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/a74b317e
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/a74b317e

Branch: refs/heads/master
Commit: a74b317e63ca727e76b7a0416d807a4f9e33cbdf
Parents: 34b1ff7
Author: Akira Ajisaka <aa...@apache.org>
Authored: Mon Jan 15 18:06:50 2018 +0900
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Mon Jan 15 10:06:33 2018 -0800

----------------------------------------------------------------------
 precommit/test-patch.d/jira.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/a74b317e/precommit/test-patch.d/jira.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.d/jira.sh b/precommit/test-patch.d/jira.sh
index eedb1ff..aaeb714 100755
--- a/precommit/test-patch.d/jira.sh
+++ b/precommit/test-patch.d/jira.sh
@@ -184,7 +184,8 @@ function jira_locate_patch
   # the assumption here is that attachment id's are given in an
   # ascending order. so bigger # == newer file
   #shellcheck disable=SC2016
-  ${AWK} 'match($0,"/secure/attachment/[0-9]*/[^\"]*"){print substr($0,RSTART,RLENGTH)}' "${PATCH_DIR}/jira" \
+  tr '>' '\n' < "${PATCH_DIR}/jira" \
+    | ${AWK} 'match($0,"/secure/attachment/[0-9]*/[^\"]*"){print substr($0,RSTART,RLENGTH)}' \
     | ${GREP} -v -e 'htm[l]*$' \
     | ${SED} -e 's,[ ]*$,,g' \
     | sort -n -r -k4 -t/ \