aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-01-12 22:46:33 +0100
committerMichał Górny <mgorny@gentoo.org>2019-04-09 13:05:55 +0200
commit5cfb79110b7e7e9dd5ce0eba943b208dd646b9a7 (patch)
tree31a4652d2486afa24006ecb2413b73fd8fa4fbe0
parentpostrecv-bugs: Do not add empty arch list to UNCC_BUGS (diff)
downloadgithooks-5cfb79110b7e7e9dd5ce0eba943b208dd646b9a7.tar.gz
githooks-5cfb79110b7e7e9dd5ce0eba943b208dd646b9a7.tar.bz2
githooks-5cfb79110b7e7e9dd5ce0eba943b208dd646b9a7.zip
postrecv-bugs: Limit arch magic to keywording/stabilization components
-rwxr-xr-xlocal/postrecv-bugs11
1 files changed, 7 insertions, 4 deletions
diff --git a/local/postrecv-bugs b/local/postrecv-bugs
index d7ebbb9..d741a83 100755
--- a/local/postrecv-bugs
+++ b/local/postrecv-bugs
@@ -144,12 +144,15 @@ for bug in "${!COMMENT_BUGS[@]}"; do
done
for bug in "${!UNCC_BUGS[@]}"; do
- is_security=
+ is_kws=
are_arches_cced=
is_closed=
while read -r key colon value; do
- if [[ ${key} == Product && ${value} == "Gentoo Security" ]]; then
- is_security=1
+ if [[ ${key} == Component && ${value} == Keywording ]]; then
+ is_kws=1
+ break
+ elif [[ ${key} == Component && ${value} == Stabilization ]]; then
+ is_kws=1
break
elif [[ ${key} == Status && ${value} == RESOLVED ]]; then
is_closed=1
@@ -165,7 +168,7 @@ for bug in "${!UNCC_BUGS[@]}"; do
fi
done < <( bugz get -a -n "${bug}" )
- if [[ ! ${is_security} && ! ${are_arches_cced} && ! ${is_closed} ]]; then
+ if [[ ${is_kws} && ! ${are_arches_cced} && ! ${is_closed} ]]; then
bugz modify -s RESOLVED -r FIXED -c "All arches done, closing." "${bug}"
fi
done