[lintian] 03/09: Move version and opening changelog to_check_dep5_copyright
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 4395c3660708fa12bdb88e1c9e54924d98ce6d8f
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Mon Jul 14 22:49:36 2014 +0200
Move version and opening changelog to_check_dep5_copyright
Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
checks/source-copyright.pm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/checks/source-copyright.pm b/checks/source-copyright.pm
index e08a843..adc9854 100644
--- a/checks/source-copyright.pm
+++ b/checks/source-copyright.pm
@@ -67,8 +67,14 @@ sub run {
}
}
- return unless defined $copyright_filename;
+ if(defined($copyright_filename)) {
+ _check_dep5_copyright($info,$copyright_filename);
+ }
+ return;
+}
+sub _check_dep5_copyright {
+ my ($info,$copyright_filename) = @_;
my $contents = slurp_entire_file($copyright_filename);
my (@dep5, @lines);
@@ -186,8 +192,6 @@ sub run {
}else {
tag 'no-dep5-copyright';
}
-
- return;
}
sub _parse_dep5 {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: