[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#563571: lintian: copyright-contains-dh-make-perl-boilerplate not triggered with newer dh-make-perl



Package: lintian
Version: 2.3.1
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

dh-make-perl creates debian/copyright more or less according to DEP5
since some time. copyright-contains-dh-make-perl-boilerplate checks
for

    /^This copyright info was automatically extracted from the perl module\./m

and is not triggered for newer debian/copyright files which put this
info as

Disclaimer: This copyright info was automatically extracted
 from the perl module. [..]

Here's a proposal for a patch:

#v+
- --- copyright-file.bak	2010-01-03 20:50:30.000000000 +0100
+++ copyright-file	2010-01-03 21:07:11.000000000 +0100
@@ -272,7 +272,8 @@
     tag 'helper-templates-in-copyright';
 }
 
- -if (m/^This copyright info was automatically extracted from the perl module\./m) {
+if (m/^This copyright info was automatically extracted from the perl module\./m ||
+    m/^Disclaimer: This copyright info was automatically extracted/mi) {
     tag 'copyright-contains-dh-make-perl-boilerplate';
 }
 
#v-

Another option would be to check only for
    /This copyright info was automatically extracted/
which hits both cases and is also what the description for the tag
says :)

Cheers,
gregor

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJLQPqiAAoJELs6aAGGSaoG6t8QAIH8OlftiCbEip62pN/V+3Jo
IeFxiBspBn3iFLBMWRQhb4M2nLv365gFhdYzD1noNbsQZmYcZBHQiVK/lm+IZPXJ
v4RviLQWca1Y/bZTZEqx7f72Rg2XrB3i7ZRqqsg16khq5q1T8S4ysBSPIwNMkiU+
A8CBxzrcKOCpWq9ITTYJBQOYmdO8IFiFRkMCnBe5lj6YdWM6xX+QPyPLWtRxnW/i
dRJsCJ1xxlN3tJk9iGS9z+rgqQyb3akp3GCqNFjpbE5qoUhfKU88mQaKU5zH8nLg
dcMy3vqMnNOpNSyG1DfzAGfp1KgeYxLTY8hL04LXU4ZJOrX30OkbuJRUmYt1uItW
oaz+ExdTM5sgf0p7vojA37yjFRm3nuhopUOaCMlcY76yWeT1l8S2B4jG85gKCFbO
SZyI6J8q+CKFYrqBx19VEWkKGbhawT5uZD42FXOfcrDwJrgPc/njo/Jl0HMnDGIy
KSkmSoazwz/JB+ifQRlseAlksNAUWKTGwhk+Rv00InHnycPc3M73J0HBgBvmxR66
xMk7/ArHBZfCWO6PPxt9hSHaG82XpYUGPLPUpoC0osnwUkSOgMcWTQrl2BdZJJ95
fi3D1NTP/rmuN1rBm7lmwGVLfeiLE4ZmEYpx5c9IIWFPP++Gmi8fQQbderdp7MYK
RIIEpTRWwubu9fw4lSSf
=ryx3
-----END PGP SIGNATURE-----



Reply to: