[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no maintainer found |
Date: |
Wed, 22 Oct 2014 14:09:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Paolo Bonzini <address@hidden> writes:
> This can be useful, at the very least, for debugging.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> scripts/get_maintainer.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
> index 38334de..a3a16d8 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -55,7 +55,7 @@ my $help = 0;
>
> my $vcs_used = 0;
>
> -my $exit = 0;
> +my $exit = 1;
>
> my %commit_author_hash;
> my %commit_signer_hash;
> @@ -2061,6 +2061,7 @@ sub output {
> print(join($output_separator, @parms));
> print("\n");
> }
> + $exit = 0 if @parms > 0;
> }
>
> my $rfc822re;
Not sure about "if no maintainer found".
Here's how output() gets called:
if (@maintainers) {
@maintainers = merge_email(@maintainers);
output(@maintainers);
}
if ($scm) {
@scm = uniq(@scm);
output(@scm);
}
if ($status) {
@status = uniq(@status);
output(@status);
}
if ($subsystem) {
@subsystem = uniq(@subsystem);
output(@subsystem);
}
if ($web) {
@web = uniq(@web);
output(@web);
}
exit($exit);
Thus, the patch makes the script exit with status 1 when none of the
above output() calls produces output.
Maybe it exits with status 1 when it fails to produce output? Obvious
ouput elsewhere: printing the version (okay), and a print in
get_maintainers(). Can't tell what the latter does. Hmm.
- [Qemu-devel] [PATCH 0/4] small improvements to get_maintainer.pl, Paolo Bonzini, 2014/10/22
- [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no maintainer found, Paolo Bonzini, 2014/10/22
- Re: [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no maintainer found,
Markus Armbruster <=
- [Qemu-devel] [PATCH 3/4] get_maintainer.pl: move git loop under "if ($email) {", Paolo Bonzini, 2014/10/22
- [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Paolo Bonzini, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Michael S. Tsirkin, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Paolo Bonzini, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Thomas Huth, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Michael S. Tsirkin, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Paolo Bonzini, 2014/10/22
- Re: [Qemu-devel] [PATCH 4/4] get_maintainer.pl: point at --git-fallback instead of enabling it automatically, Markus Armbruster, 2014/10/22
[Qemu-devel] [PATCH 2/4] get_maintainer.pl: treat all M entries the same, Paolo Bonzini, 2014/10/22