#!/bin/bash URL="https://apibugzilla.suse.com/xmlrpc.cgi" resolve_one() { ${BUGZILLA} modify -l "Automated update: This patch was committed to the kernel git repository. Closing as FIXED." -k FIXED $1 } DIR="$(realpath $(dirname $0))" if [ ! -e "${DIR}/bugzilla-cli" ]; then echo "Missing ${DIR}/bugzilla-cli" >&2 exit 1 fi BUGZILLA="${DIR}/bugzilla-cli --bugzilla ${URL} --ensure-logged-in" if [ "$#" -eq 0 ]; then echo "usage: $(basename $0) [bug ids ...]" >&2 exit 1 fi for bugid in "$@"; do resolve_one ${bugid} done