From d6bac8f1fa024caa91301a41265c9c0390c3d470 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 26 Mar 2012 13:41:54 +0100 Subject: It seems chili anoyingly likes to change all the entries when a bug's status is changed, causing pbot-ng to report dosens of bug tracker changes. This comit should fix it. --- chili_change_detector | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chili_change_detector b/chili_change_detector index 304cfb3..08043b7 100755 --- a/chili_change_detector +++ b/chili_change_detector @@ -109,6 +109,7 @@ function slide_and_write for key in "${!bugs[@]}" do + key=$( sed 's/([^)]\+)//' <<< "${i}" ) old_bugs[${key}]=${bugs[${key}]} done @@ -154,19 +155,20 @@ do # and we know that this is a creation, not a change. for i in "${!bugs[@]}" do + ii=$( sed 's/([^)]\+)//' <<< "${i}" ) # If this bug is new since last time. - if [[ -z ${old_bugs[${i}]} ]] + if [[ -z ${old_bugs[${ii}]} ]] then # Check the log of seen issues to find out if this is a creation or # a change. - if grep "${i%%🐵*}" "${seen_issues_log}" > /dev/null 2> /dev/null + if grep "${ii%%🐵*}" "${seen_issues_log}" > /dev/null 2> /dev/null then creation_or_change="change" else creation_or_change="creation" # Add this issue to the log. - echo "${i%%🐵*}" >> "${seen_issues_log}" + echo "${ii%%🐵*}" >> "${seen_issues_log}" fi real_title="${i%%🐵*}" -- cgit v1.2.3-54-g00ecf