From 7d695694425743646ac2a8b131d2d091a6af80c7 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Thu, 24 Jan 2019 19:13:37 +0100 Subject: scripts/periupport_conv: handle multiple U: lines per commit Signed-off-by: Wolfram Sang --- scripts/periupport_conv | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/periupport_conv') diff --git a/scripts/periupport_conv b/scripts/periupport_conv index 987f059..39bf388 100755 --- a/scripts/periupport_conv +++ b/scripts/periupport_conv @@ -25,8 +25,9 @@ gawk -v dst="$DST" -v cmd="$uuid_cmd" ' } /^U: / { - upstream[bsp_id] = substr($0, 4, 40) - upstream_desc[bsp_id] = substr($0, 46) + upstream_id = substr($0, 4, 40) + upstream[bsp_id][upstream_id] = upstream_id + upstream_desc[bsp_id][upstream_id] = substr($0, 46) } /^*: / { gsub(/"/, "ยด"); comment[bsp_id] = substr($0, 4) } @@ -59,8 +60,9 @@ gawk -v dst="$DST" -v cmd="$uuid_cmd" ' print "upstream:" >> F for (idx in sorted_idx) { commit = tasks[task][sorted_idx[idx]] - if (upstream[commit]) - print " - torvalds: " upstream[commit] " # " upstream_desc[commit] >> F + if (isarray(upstream[commit])) + for (upstream_id in upstream[commit]) + print " - torvalds: " upstream[commit][upstream_id] " # " upstream_desc[commit][upstream_id] >> F } print "" >> F -- cgit v1.2.3