On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> That's all what I can think of now. I'm open to suggestions and feature
> requests, and I'd be happy to improve sunrise-commit to meet Gentoo
> developer needs.

stable bug filing

this is the hack i use:
submit_bug_stable() {
    local msg="doit"
    if [[ $1 == "-m" ]] ; then
        msg=$2
        shift 2
    fi
    if [[ -z $1 ]] || [[ -n $2 ]] ; then
        echo "Usage: submit_bug_stable <ebuilds>"
        return 1
    fi
    local maintainer=$(xml sel -t -v pkgmetadata/herd metadata.xml)
    if [[ ${maintainer} == "no-herd" ]] ; then
        maintainer=$(xml sel -t -v pkgmetadata/maintainer/email metadata.xml)
    elif [[ -n ${maintainer} ]] ; then
        maintainer="${[email protected]"
    fi
    if [[ -z ${maintainer} ]] ; then
        echo "No maintainer found in metadata.xml"
        return 1
    fi
    local cat=$(basename $(dirname $(pwd)))
    local pkg=${1%.ebuild}
    local ebuild=${pkg}.ebuild
    local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^
]*|mips)@[^ ]*::g')
    if [[ -z ${cc} ]] ; then
        echo "Unable to read ebuild '${ebuild}'"
        return 1
    fi
    bugz post \
        --batch \
        -u [email protected] \
        -t "Stabilize ${cat}/${pkg}" \
        -d "${msg}" \
        -a "${maintainer}" \
        --cc="${cc}" \
        -k STABLEREQ \
        --product='Gentoo Linux' \
        --component=Ebuilds \
        --priority=P2 \
        --severity=enhancement
}
-mike

Reply via email to