Home Home > GIT Browse > SLE12-SP5
summaryrefslogtreecommitdiff
blob: 7fd62374ec79acade817a6f732e9216cd3876ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 id> [bug ids ...]" >&2
	exit 1
fi

for bugid in "$@"; do
	resolve_one ${bugid}
done