[libconfig-model-dpkg-perl] 08/13: Scanner: improve warning about file without info

dod at debian.org dod at debian.org
Sun Feb 7 17:16:16 UTC 2016


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 8ca38783c1dbeda4ff43e145520d01107931e948
Author: Dominique Dumont <dod at debian.org>
Date:   Sun Feb 7 16:06:42 2016 +0100

    Scanner: improve warning about file without info
---
 lib/Dpkg/Copyright/Scanner.pm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 935154d..82d1f50 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -257,12 +257,15 @@ sub scan_files ( %args ) {
             $l = $fill_blank->{license};
         }
 
+        my @no_info_found;
         if ( $c =~ /no-info-found/ and $is_debian_package) {
-            _warn "Path $f has no copyright info. You may want to add a line in debian/fill.copyright.blanks.yml\n";
+            push @no_info_found, 'copyright';
         }
         if ( $l =~/unknown/i and $is_debian_package ) {
-            _warn "Path $f has no license info. You may want to add a line in debian/fill.copyright.blanks.yml\n";
+            push @no_info_found, 'license';
         }
+        _warn "Path $f has no ".join(' or ', @no_info_found)." info. You may want to add a line in debian/fill.copyright.blanks.yml\n"
+            if @no_info_found;
 
         #say "Storing '$f' : '$c' '$l'";
         $files->{$f} = $copyrights{$c}{$l} //= $id++;

-- 
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