[libconfig-model-dpkg-perl] 02/05: dpkg copyrigt backend: skip empty-ish license
dod at debian.org
dod at debian.org
Sat Sep 7 15:34:49 UTC 2013
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 c0bb3dff0b6f8d458b9395e18cd8cb98d776d240
Author: Dominique Dumont <dod at debian.org>
Date: Sat Sep 7 17:31:31 2013 +0200
dpkg copyrigt backend: skip empty-ish license
---
lib/Config/Model/Backend/Dpkg/Copyright.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/Config/Model/Backend/Dpkg/Copyright.pm b/lib/Config/Model/Backend/Dpkg/Copyright.pm
index 793a16b..a6ec600 100644
--- a/lib/Config/Model/Backend/Dpkg/Copyright.pm
+++ b/lib/Config/Model/Backend/Dpkg/Copyright.pm
@@ -276,6 +276,7 @@ sub _store_file_license {
my ($lic_object, $v, $check) = @_ ;
chomp $v ;
+ return unless $v =~ /\S/; # skip empty-ish value
$logger->debug("_store_file_license check $check called on ".$lic_object->name." = $v");
my ( $lic_line, $lic_text ) = split /\n/, $v, 2 ;
$lic_line =~ s/\s+$//;
--
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