diff options
author | 2011-04-09 14:40:20 +0200 | |
---|---|---|
committer | 2011-04-09 14:40:20 +0200 | |
commit | cda67f47e3460d13d30e8850f25fd9c3ee9d3777 (patch) | |
tree | 29dd47cb61b9e778616911d38f8b5fa1ff005e3f /scripts | |
parent | bump (diff) | |
download | maekke-cda67f47e3460d13d30e8850f25fd9c3ee9d3777.tar.gz maekke-cda67f47e3460d13d30e8850f25fd9c3ee9d3777.tar.bz2 maekke-cda67f47e3460d13d30e8850f25fd9c3ee9d3777.zip |
be compatible with pybugz 0.9
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/keyword.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/keyword.sh b/scripts/keyword.sh index 016cdba..8f34f83 100755 --- a/scripts/keyword.sh +++ b/scripts/keyword.sh @@ -4,6 +4,7 @@ REPODIR="${HOME}/cvs/gentoo-x86" BUGZ_USER="maekke@gentoo.org" BUGZ="bugz" +BUGZ_DEFAULT_OPTS="--base https://bugs.gentoo.org --user ${BUGZ_USER}" die() { echo $@ @@ -104,7 +105,7 @@ fi [[ ${bugid} == 0 ]] && echo "done, as bug# is 0" && exit 0 tmpfile="$(mktemp)" -${BUGZ} get --base=https://bugs.gentoo.org ${bugid} > ${tmpfile} +${BUGZ} ${BUGZ_DEFAULT_OPTS} get ${bugid} > ${tmpfile} aliases="$(grep ^CC ${tmpfile} | awk '{ print $3 }')" assignee="$(grep ^Assignee ${tmpfile} | awk '{ print $3 }')" rm ${tmpfile} @@ -128,9 +129,9 @@ for bugarch in ${bugarches} ; do [[ ${found} == 0 ]] && lastarch="0" done -bugz_options="--base="https://bugs.gentoo.org" --user=${BUGZ_USER}" +bugz_options="" for arch in ${arches} ; do - bugz_options="${bugz_options} --remove-cc=${arch}@gentoo.org" + bugz_options="${bugz_options} --remove-cc ${arch}@gentoo.org" done if [[ ${lastarch} == "1" ]] ; then @@ -140,6 +141,7 @@ else [[ -z ${bugz_message} ]] && bugz_message="${arches// //} stable" fi -echo "running ${BUGZ} modify ${bugid} ${bugz_options} --comment=\"${bugz_message}\"" -${BUGZ} modify ${bugid} ${bugz_options} --comment="${bugz_message}" || die "bugz failed" +echo "not running ${BUGZ} atm..." +echo "running ${BUGZ} ${BUGZ_DEFAULT_OPTS} modify ${bugid} ${bugz_options} --comment \"${bugz_message}\"" +${BUGZ} ${BUGZ_DEFAULT_OPTS} modify ${bugid} ${bugz_options} --comment "${bugz_message}" || die "bugz failed" echo ">>> finished successfully" |