Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: sunrise@g.o, ohnobinki@××××××××××××××.net
Subject: Re: [gentoo-dev] (New) sunrise-commit -- a commit helper script for Gentoo devs
Date: Thu, 06 Jan 2011 21:29:33
Message-Id: AANLkTik50Mftb2_WhnLcZJU_aqmjuUt1S8_RONQkm58x@mail.gmail.com
In Reply to: [gentoo-dev] (New) sunrise-commit -- a commit helper script for Gentoo devs by "Michał Górny"
1 On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
2 > That's all what I can think of now. I'm open to suggestions and feature
3 > requests, and I'd be happy to improve sunrise-commit to meet Gentoo
4 > developer needs.
5
6 stable bug filing
7
8 this is the hack i use:
9 submit_bug_stable() {
10 local msg="doit"
11 if [[ $1 == "-m" ]] ; then
12 msg=$2
13 shift 2
14 fi
15 if [[ -z $1 ]] || [[ -n $2 ]] ; then
16 echo "Usage: submit_bug_stable <ebuilds>"
17 return 1
18 fi
19 local maintainer=$(xml sel -t -v pkgmetadata/herd metadata.xml)
20 if [[ ${maintainer} == "no-herd" ]] ; then
21 maintainer=$(xml sel -t -v pkgmetadata/maintainer/email metadata.xml)
22 elif [[ -n ${maintainer} ]] ; then
23 maintainer="${maintainer}@gentoo.org"
24 fi
25 if [[ -z ${maintainer} ]] ; then
26 echo "No maintainer found in metadata.xml"
27 return 1
28 fi
29 local cat=$(basename $(dirname $(pwd)))
30 local pkg=${1%.ebuild}
31 local ebuild=${pkg}.ebuild
32 local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^
33 ]*|mips)@[^ ]*::g')
34 if [[ -z ${cc} ]] ; then
35 echo "Unable to read ebuild '${ebuild}'"
36 return 1
37 fi
38 bugz post \
39 --batch \
40 -u vapier@g.o \
41 -t "Stabilize ${cat}/${pkg}" \
42 -d "${msg}" \
43 -a "${maintainer}" \
44 --cc="${cc}" \
45 -k STABLEREQ \
46 --product='Gentoo Linux' \
47 --component=Ebuilds \
48 --priority=P2 \
49 --severity=enhancement
50 }
51 -mike

Replies