From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q8XRC-0002dU-4E for garchives@archives.gentoo.org; Sat, 09 Apr 2011 12:38:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F8241C00F; Sat, 9 Apr 2011 12:38:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 020021C00F for ; Sat, 9 Apr 2011 12:38:42 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 886611B4067 for ; Sat, 9 Apr 2011 12:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C075280065 for ; Sat, 9 Apr 2011 12:38:41 +0000 (UTC) From: "Markus Meier" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Markus Meier" Message-ID: Subject: [gentoo-commits] dev/maekke:master commit in: scripts/ X-VCS-Repository: dev/maekke X-VCS-Files: scripts/keyword.sh X-VCS-Directories: scripts/ X-VCS-Committer: maekke X-VCS-Committer-Name: Markus Meier X-VCS-Revision: cda67f47e3460d13d30e8850f25fd9c3ee9d3777 Date: Sat, 9 Apr 2011 12:38:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 845cf6775b314d443e9c21a35aa171e7 commit: cda67f47e3460d13d30e8850f25fd9c3ee9d3777 Author: Markus Meier gentoo org> AuthorDate: Sat Apr 9 12:40:20 2011 +0000 Commit: Markus Meier gentoo org> CommitDate: Sat Apr 9 12:40:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/maekke.git;a=3D= commit;h=3Dcda67f47 be compatible with pybugz 0.9 --- 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=3D"${HOME}/cvs/gentoo-x86" BUGZ_USER=3D"maekke@gentoo.org" BUGZ=3D"bugz" +BUGZ_DEFAULT_OPTS=3D"--base https://bugs.gentoo.org --user ${BUGZ_USER}" =20 die() { echo $@ @@ -104,7 +105,7 @@ fi [[ ${bugid} =3D=3D 0 ]] && echo "done, as bug# is 0" && exit 0 =20 tmpfile=3D"$(mktemp)" -${BUGZ} get --base=3Dhttps://bugs.gentoo.org ${bugid} > ${tmpfile} +${BUGZ} ${BUGZ_DEFAULT_OPTS} get ${bugid} > ${tmpfile} aliases=3D"$(grep ^CC ${tmpfile} | awk '{ print $3 }')" assignee=3D"$(grep ^Assignee ${tmpfile} | awk '{ print $3 }')" rm ${tmpfile} @@ -128,9 +129,9 @@ for bugarch in ${bugarches} ; do [[ ${found} =3D=3D 0 ]] && lastarch=3D"0" done =20 -bugz_options=3D"--base=3D"https://bugs.gentoo.org" --user=3D${BUGZ_USER}= " +bugz_options=3D"" for arch in ${arches} ; do - bugz_options=3D"${bugz_options} --remove-cc=3D${arch}@gentoo.org" + bugz_options=3D"${bugz_options} --remove-cc ${arch}@gentoo.org" done =20 if [[ ${lastarch} =3D=3D "1" ]] ; then @@ -140,6 +141,7 @@ else [[ -z ${bugz_message} ]] && bugz_message=3D"${arches// //} stable" fi =20 -echo "running ${BUGZ} modify ${bugid} ${bugz_options} --comment=3D\"${bu= gz_message}\"" -${BUGZ} modify ${bugid} ${bugz_options} --comment=3D"${bugz_message}" ||= die "bugz failed" +echo "not running ${BUGZ} atm..." +echo "running ${BUGZ} ${BUGZ_DEFAULT_OPTS} modify ${bugid} ${bugz_option= s} --comment \"${bugz_message}\"" +${BUGZ} ${BUGZ_DEFAULT_OPTS} modify ${bugid} ${bugz_options} --comment "= ${bugz_message}" || die "bugz failed" echo ">>> finished successfully"