[lintian] 01/01: Don't emit a warning if we have no 'section'.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 7ea11f79ebbe5f0bd76fd6b71c210551ef16226f
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Jan 30 07:26:31 2018 +0000
    Don't emit a warning if we have no 'section'.
---
 checks/source-copyright.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/source-copyright.pm b/checks/source-copyright.pm
index bb1f64c..1a56b03 100644
--- a/checks/source-copyright.pm
+++ b/checks/source-copyright.pm
@@ -277,7 +277,7 @@ sub _parse_dep5 {
       "(line $lines[0]{'format'})"
       if none { defined $first_para->{$_} } qw(format format-specification);
     tag 'missing-explanation-for-contrib-or-non-free-package'
-      if $info->source_field('section') =~ m{^(contrib|non-free)(/.+)?$}
+      if $info->source_field('section', '') =~ m{^(contrib|non-free)(/.+)?$}
       and none { defined $first_para->{$_} } qw(comment disclaimer);
 
     my (undef, $full_license_header, undef,@short_licenses_header)
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: