Bug#481368: Catch not filled in URL from dh_make (url://example.com)
Package: lintian
Version: 1.23.48
Severity: wishlist
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
dh_make fills in debian/copyright with url://example.com. Currently
thins goes unnoticed through lintian, but I think it should spot this
issue. Attached patch adds this check.
- --
Michal Čihař | http://cihar.com | http://blog.cihar.com
- -- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (99, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.18.1~cvs20080103-4 The GNU assembler, linker and bina
ii diffstat 1.45-2 produces graph of changes introduc
ii dpkg-dev 1.14.19 package building tools for Debian
ii file 4.24-2 Determines file type using "magic"
ii gettext 0.17-2 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libparse-debianchan 1.1.1-2 parse Debian changelogs and output
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii man-db 2.5.2-1 on-line manual pager
ii perl [libdigest-sha 5.10.0-10 Larry Wall's Practical Extraction
lintian recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFILFGk3DVS6DbnVgQRAuIOAKC5xe/3Rt5YEpuzPnWrCWVwBPkIpwCfXte5
wBvXBsmtPUO0tlOM/IY7Sxg=
=R3cw
-----END PGP SIGNATURE-----
Index: checks/copyright-file.desc
===================================================================
--- checks/copyright-file.desc (revision 1307)
+++ checks/copyright-file.desc (working copy)
@@ -186,6 +186,14 @@
.
o/~ join us now and carefully edit debian/copyright files! o/~
+Tag: copyright-lists-url-with-dh_make-boilerplate
+Type: warning
+Info: There is "url://example.com" in your copyright file. This was most
+ likely a remnant from the dh_make template.
+ .
+ There must be some URL, where this package has been downloaded from, so
+ please use it.
+
Tag: debian-copyright-file-uses-obsolete-national-encoding
Type: warning
Info: The Debian copyright file should be valid UTF-8, an encoding of
Index: checks/copyright-file
===================================================================
--- checks/copyright-file (revision 1307)
+++ checks/copyright-file (working copy)
@@ -236,6 +236,10 @@
tag "copyright-lists-upstream-authors-with-dh_make-boilerplate";
}
+if (m,url://example.com) {
+ tag "copyright-lists-url-with-dh_make-boilerplate";
+}
+
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", "";
}
Reply to: