diff options
author | Joe <joe@joelightning.com> | 2012-03-26 13:41:54 +0100 |
---|---|---|
committer | Joe <joe@joelightning.com> | 2012-03-26 13:41:54 +0100 |
commit | d6bac8f1fa024caa91301a41265c9c0390c3d470 (patch) | |
tree | bdcd2dda51611309ce992781d5d98c95278ca148 | |
parent | 0998c33b768e6d5ec053b2f443043b787cb2500b (diff) |
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.
-rwxr-xr-x | chili_change_detector | 8 |
1 files 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%%🐵*}" |