[libconfig-model-dpkg-perl] 07/08: Scanner: Don't touch (c) data if owner can't be figured out
dod at debian.org
dod at debian.org
Sun Jan 18 20:14:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.
commit b443badc7afcf858b0b86dbae604b5160dbbcedc
Author: Dominique Dumont <dod at debian.org>
Date: Sun Jan 18 21:11:59 2015 +0100
Scanner: Don't touch (c) data if owner can't be figured out
---
lib/Dpkg/Copyright/Scanner.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 5132af3..145fec7 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -134,6 +134,7 @@ sub __pack_copyright ($r) {
foreach my $c ( split( m!\s*/\s*!, $r)) {
my @data = split /(?<=\d)[,\s]+/, $c;
my $owner = pop @data;
+ return $r unless defined $owner;
$owner =~ s/^\s+|\s+$//g;
$cop{$owner} ||= [] ;
push $cop{$owner}->@*, @data ;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git
More information about the Pkg-perl-cvs-commits
mailing list