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

Bug#420558: extra-license-file check shouldn't consider .dtd files



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

I don't think we should consider .dtd files when looking for a license
file. Various mozilla programs ship this, and it isn't truly a license
file. The attached patch excludes them. 

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils               2.17-3            The GNU assembler, linker and bina
ii  diffstat               1.43-2            produces graph of changes introduc
ii  dpkg-dev               1.13.25           package building tools for Debian
ii  file                   4.20-4            Determines file type using "magic"
ii  gettext                0.16.1-1          GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libparse-debianchangel 1.0-1             parse Debian changelogs and output
ii  man-db                 2.4.4-2           The on-line manual pager
ii  perl [libdigest-md5-pe 5.8.8-7           Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information
--- checks/files.old	2007-04-23 04:06:43.000000000 -0400
+++ checks/files	2007-04-23 04:07:12.000000000 -0400
@@ -508,7 +508,7 @@
 	# because a package had a HTML form for licenses called like that.
 	# Another exception is made for various picture formats since
 	# those are likely to just be simply pictures.
-	and not $file =~ m/\.(el|c|h|py|cc|pl|pm|html|php|rb|xpm|png|jpe?g|gif|svg)$/
+	and not $file =~ m/\.(el|c|h|py|cc|pl|pm|html|php|rb|xpm|png|jpe?g|gif|svg|dtd)$/
         and not defined $link) {
 	tag "extra-license-file", "$file";
     }

Reply to: