koschei-refresh-distgit-group: Exclude non-rpms namespaces (#7636)

This commit is contained in:
Mikolaj Izdebski 2019-03-29 10:55:05 +01:00
parent 6cac5e473c
commit bed6d7aadc

View file

@ -4,4 +4,4 @@ if [ "$#" -ne 2 ]; then
exit 1
fi
set -e
curl -s "https://src.fedoraproject.org/api/0/group/${2}?projects=1" | jq -r '.projects[].name' | koschei-admin edit-group "${1}" --content-from-file - --append
curl -s "https://src.fedoraproject.org/api/0/group/${2}?projects=1" | jq -r '.projects[]|select(.namespace=="rpms").name' | koschei-admin edit-group "${1}" --content-from-file - --append