From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5F76813800E for ; Wed, 1 Aug 2012 19:25:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FBAFE068C; Wed, 1 Aug 2012 19:25:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E6BD5E068C for ; Wed, 1 Aug 2012 19:25:35 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D0A71B4009 for ; Wed, 1 Aug 2012 19:25:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1BBEAE543C for ; Wed, 1 Aug 2012 19:25:34 +0000 (UTC) From: "Christoph Mende" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Mende" Message-ID: <1343849127.7856ac0d476d1773991772bbce26a0367dbf689b.angelos@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: portqa X-VCS-Directories: / X-VCS-Committer: angelos X-VCS-Committer-Name: Christoph Mende X-VCS-Revision: 7856ac0d476d1773991772bbce26a0367dbf689b X-VCS-Branch: master Date: Wed, 1 Aug 2012 19:25:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2bfc5439-99af-476f-be12-a883fdb1bfca X-Archives-Hash: 98bb636c402af3b35a6e89cc64bfa6e2 commit: 7856ac0d476d1773991772bbce26a0367dbf689b Author: Christoph Mende gentoo org> AuthorDate: Wed Aug 1 19:25:27 2012 +0000 Commit: Christoph Mende gentoo org> CommitDate: Wed Aug 1 19:25:27 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=7856ac0d portqa: Allow email addresses to be passed as argument and assume --maintainer instead of --herd in that case --- portqa | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/portqa b/portqa index 3638055..d617a41 100755 --- a/portqa +++ b/portqa @@ -5,12 +5,19 @@ [[ -z $1 ]] && exit 1 if [[ $1 == help || $1 == --help ]]; then - echo "Usage: $0 herd-to-checkup" + echo "Usage: $0 herd-or-maintainer-to-checkup" exit 0 fi + +if [[ $1 = *@* ]]; then + target="--maintainer=$1" +else + target="--herd=$1" +fi + #-c pkgcore_checks.imlate \ pushd "$(portageq portdir)" > /dev/null -package=$(pquery --herd=$1 --repo=portdir --no-version | tr '\n' ' ') +package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ') pcheck -c pkgcore_checks.deprecated \ -c pkgcore_checks.whitespace \ -c pkgcore_checks.pkgdir_checks \