Received: from eggs.gnu.org ([2001:4830:134:3::10]:42403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgujv-0007Uz-Mr for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:10:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgujp-0005iU-A8 for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:10:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgujp-0005iO-1Z for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:10:01 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9MCA0Tf018680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 22 Oct 2014 08:10:00 -0400 From: Markus Armbruster References: <1413968902-24094-1-git-send-email-pbonzini@redhat.com> <1413968902-24094-2-git-send-email-pbonzini@redhat.com> Date: Wed, 22 Oct 2014 14:09:51 +0200 In-Reply-To: <1413968902-24094-2-git-send-email-pbonzini@redhat.com> (Paolo Bonzini's message of "Wed, 22 Oct 2014 11:08:19 +0200") Message-ID: <87iojccnlc.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/4] get_maintainer.pl: exit with status 1 if no maintainer found List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, mst@redhat.com Paolo Bonzini writes: > This can be useful, at the very least, for debugging. > > Signed-off-by: Paolo Bonzini > --- > 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.