Gentoo Archives: gentoo-commits

From: Christoph Mende <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Wed, 01 Aug 2012 19:25:53
Message-Id: 1343849127.7856ac0d476d1773991772bbce26a0367dbf689b.angelos@gentoo
1 commit: 7856ac0d476d1773991772bbce26a0367dbf689b
2 Author: Christoph Mende <angelos <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 1 19:25:27 2012 +0000
4 Commit: Christoph Mende <angelos <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 19:25:27 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=7856ac0d
7
8 portqa: Allow email addresses to be passed as argument and assume --maintainer instead of --herd in that case
9
10 ---
11 portqa | 11 +++++++++--
12 1 files changed, 9 insertions(+), 2 deletions(-)
13
14 diff --git a/portqa b/portqa
15 index 3638055..d617a41 100755
16 --- a/portqa
17 +++ b/portqa
18 @@ -5,12 +5,19 @@
19 [[ -z $1 ]] && exit 1
20
21 if [[ $1 == help || $1 == --help ]]; then
22 - echo "Usage: $0 herd-to-checkup"
23 + echo "Usage: $0 herd-or-maintainer-to-checkup"
24 exit 0
25 fi
26 +
27 +if [[ $1 = *@* ]]; then
28 + target="--maintainer=$1"
29 +else
30 + target="--herd=$1"
31 +fi
32 +
33 #-c pkgcore_checks.imlate \
34 pushd "$(portageq portdir)" > /dev/null
35 -package=$(pquery --herd=$1 --repo=portdir --no-version | tr '\n' ' ')
36 +package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ')
37 pcheck -c pkgcore_checks.deprecated \
38 -c pkgcore_checks.whitespace \
39 -c pkgcore_checks.pkgdir_checks \