lintian: r1304 - in trunk: checks debian testset testset/copyright/debian
Author: djpig
Date: 2008-05-06 20:43:57 +0200 (Tue, 06 May 2008)
New Revision: 1304
Modified:
trunk/checks/copyright-file
trunk/checks/copyright-file.desc
trunk/debian/changelog
trunk/testset/copyright/debian/copyright.misc-errors
trunk/testset/tags.copyright
Log:
* checks/copyright-file{,.desc}:
+ Implement new check for dh-make-perl boilerplate.
Modified: trunk/checks/copyright-file
===================================================================
--- trunk/checks/copyright-file 2008-05-06 18:21:21 UTC (rev 1303)
+++ trunk/checks/copyright-file 2008-05-06 18:43:57 UTC (rev 1304)
@@ -239,6 +239,9 @@
if (m{\# Please also look if there are files or directories which have a\n\# different copyright/license attached and list them here\.}) {
tag "copyright-contains-dh_make-todo-boilerplate", "";
}
+if (m{This copyright info was automatically extracted from the perl module\.\nIt may not be accurate, so you better check the module sources\nif you don\'t want to get into legal troubles\.}) {
+ tag "copyright-contains-dh-make-perl-boilerplate", "";
+}
if ($found && !$linked && !/(Copyright|Copr\.|\302\251)(.*|[\(C\):\s]+)\b\d{4}\b|\bpublic\s+domain\b/i) {
tag 'copyright-without-copyright-notice';
Modified: trunk/checks/copyright-file.desc
===================================================================
--- trunk/checks/copyright-file.desc 2008-05-06 18:21:21 UTC (rev 1303)
+++ trunk/checks/copyright-file.desc 2008-05-06 18:43:57 UTC (rev 1304)
@@ -205,6 +205,14 @@
to find additional copyright/license, or that you didn't remove that
paragraph after having done so.
+Tag: copyright-contains-dh-make-perl-boilerplate
+Type: warning
+Ref: policy 12.5
+Info: The string "This copyright info was automatically extracted..."
+ appears in the copyright file, which indicates that you either didn't
+ check the whole source to find additional copyright/license, or that
+ you didn't remove that paragraph after having done so.
+
Tag: copyright-without-copyright-notice
Type: warning
Ref: http://ftp-master.debian.org/REJECT-FAQ.html
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-05-06 18:21:21 UTC (rev 1303)
+++ trunk/debian/changelog 2008-05-06 18:43:57 UTC (rev 1304)
@@ -1,5 +1,7 @@
lintian (1.23.49) UNRELEASED; urgency=low
+ * checks/copyright-file{,.desc}:
+ + [FL] Implement new check for dh-make-perl boilerplate.
* checks/debhelper:
+ [FL] dh_lintian needs debhelper >= 6.0.7. Patch by David Paleino.
(Closes: #479088)
Modified: trunk/testset/copyright/debian/copyright.misc-errors
===================================================================
--- trunk/testset/copyright/debian/copyright.misc-errors 2008-05-06 18:21:21 UTC (rev 1303)
+++ trunk/testset/copyright/debian/copyright.misc-errors 2008-05-06 18:43:57 UTC (rev 1304)
@@ -10,3 +10,7 @@
/usr/share/common-licenses/BSD.gz
This path /usr/share/doc/copyright is obsolete.
+
+This copyright info was automatically extracted from the perl module.
+It may not be accurate, so you better check the module sources
+if you don't want to get into legal troubles.
Modified: trunk/testset/tags.copyright
===================================================================
--- trunk/testset/tags.copyright 2008-05-06 18:21:21 UTC (rev 1303)
+++ trunk/testset/tags.copyright 2008-05-06 18:43:57 UTC (rev 1304)
@@ -12,6 +12,7 @@
E: copyright.symlink: copyright-file-is-symlink
W: copyright.compressed: copyright-without-copyright-notice
W: copyright.iso-8859-1: debian-copyright-file-uses-obsolete-national-encoding at line 3
+W: copyright.misc-errors: copyright-contains-dh-make-perl-boilerplate
W: copyright.misc-errors: copyright-lists-upstream-authors-with-dh_make-boilerplate
W: copyright.old-style: copyright-without-copyright-notice
W: copyright.symlink: copyright-without-copyright-notice
Reply to: