[libconfig-model-dpkg-perl] 07/13: Scanner: don't skip files 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 294da89ed1e2519b3aa0ba59824eab03de14bd3e
Author: Dominique Dumont <dod at debian.org>
Date:   Sun Feb 7 16:05:40 2016 +0100

    Scanner: don't skip files without info...
    
    ... filling the blanks may be necessary to reduce the number of warnings
---
 lib/Dpkg/Copyright/Scanner.pm | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index a9e7d72..935154d 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -240,8 +240,6 @@ sub scan_files ( %args ) {
 
         $c = __pack_copyright($c);
 
-        next if $l =~ /unknown/i and $c =~ /no-info-found/i;
-
         # this data overrides what's found in current files. This is done before
         # the code that merge and coaslesce entries
         my $fill_blank = __get_fill_blank($fill_blank_data, $f);
@@ -648,22 +646,28 @@ Do not specify the dot with the suffixes. This will be added by the scanner.
 Sometimes, upstream coders are not perfect: some source files cannot
 be parsed correctly or some legal information is missing.
 
-A file without copyright and license information is skipped.
-
-On the other hand, a file with either copyright or license missing
-will be used. Unfortunately, this will prevent a correct grouping and
-merging of copyright entries.
+All scanned files, even without copyright or license will be used. A
+warning will be shown for each file with missing information.
 
 Instead of patching upstream source files to fill the blank, you can
 specify the missing information in a special file. This file is
 C<debian/fill.copyright.blanks.yml>. It should contain a "mapping"
 YAML structure (i.e. a hash), where the key is a Perl pattern used to
-match a path. E.g:
+match a path. 
+
+If the source of the package contains a lot of files without legal
+information, you may need to specify there information for a whole
+directory (See the C</src> dir in the example below).
+
+For instance:
 
  ---
  debian:
    copyright: 2015, Marcel
    license: Expat
+ src/:
+   copyright: 2016. Joe
+   license: Expat
  share/pkgs/openSUSE/systemd/onedsetup:
    copyright: 2015, Marcel
  share/vendor/ruby/gems/rbvmomi/lib/rbvmomi.*\.rb:

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