[libconfig-model-dpkg-perl] 08/27: Copyright::Scanner: better handle when no copyright info is found

dod at debian.org dod at debian.org
Mon Jan 12 07:09:47 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 899b9cf2eb2d266ab9e40f5ce9d2b6cae2fb04f4
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Dec 27 17:01:44 2014 +0100

    Copyright::Scanner: better handle when no copyright info is found
---
 lib/Dpkg/Copyright/Scanner.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 55c7b34..21c93e8 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -100,6 +100,7 @@ sub scan_files {
         }
     }
 
+    say "No copyright information found" unless keys %$files;
     say "grouping";
     # regroup %files hash: all leaves have same id -> wild card
     use XXX;
@@ -188,7 +189,7 @@ sub __squash ($h) {
         }
     }
     # here's the '*' file representing the most used (c) info
-    $h->{'*'} = $max_id ;
+    $h->{'*'} = $max_id if defined $max_id;
 
     return $h;
 }

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