[libdist-zilla-plugin-test-podspelling-perl] 54/86: check for copyright holder

Axel Beckert abe at deuxchevaux.org
Mon May 25 10:02:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to annotated tag 2.001001
in repository libdist-zilla-plugin-test-podspelling-perl.

commit 67468281e764eb9c8e889279655a29b5dcaec8c1
Author: Caleb Cushing <xenoterracide at gmail.com>
Date:   Sat Aug 6 12:03:05 2011 -0500

    check for copyright holder
    
    Signed-off-by: Caleb Cushing <xenoterracide at gmail.com>
---
 lib/Dist/Zilla/Plugin/Test/PodSpelling.pm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/Dist/Zilla/Plugin/Test/PodSpelling.pm b/lib/Dist/Zilla/Plugin/Test/PodSpelling.pm
index 3fcf213..d215b03 100644
--- a/lib/Dist/Zilla/Plugin/Test/PodSpelling.pm
+++ b/lib/Dist/Zilla/Plugin/Test/PodSpelling.pm
@@ -44,9 +44,13 @@ around add_file => sub {
         push @{ $self->stopwords }, /(\w{2,})/gxms;
     }
 
-	for ( split( ' ', $self->stash_named( 'copyright_holder' ) ) ) {
-		$self->log_debug( $_ );
-		push @{ $self->stopwords };
+	if ( $self->stash_named( 'copyright_holder' ) ) {
+		for ( split( ' ', $self->stash_named( 'copyright_holder' ) ) ) {
+			$self->log_debug( $_ );
+			push @{ $self->stopwords };
+		}
+	} else {
+		$self->log_debug( 'no copyright_holder found' );
 	}
 
     if (@{ $self->stopwords } > 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-podspelling-perl.git



More information about the Pkg-perl-cvs-commits mailing list