1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 800-allow-comments-in-debian-control.dpatch by Eero Häkkinen <eero.hakkinen@nokia.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Ignore comments while looking for duplicated fields in debian/control.
6 ## DP: Comments have been supported since dpkg 1.10.11.
9 diff -urNad lintian~/checks/control-file lintian/checks/control-file
10 --- lintian~/checks/control-file 2006-09-21 15:06:59.000000000 +0300
11 +++ lintian/checks/control-file 2006-09-21 15:14:04.000000000 +0300
13 open (CONTROL, '<', "debfiles/control")
14 or fail "Couldn't read debfiles/control: $!";
19 + if (/^#\s*[Pp]ackage:\s*(\S*)/) {
20 + tag "debian-control-with-out-commented-binary-section", "Package $1";
28 diff -urNad lintian~/checks/control-file.desc lintian/checks/control-file.desc
29 --- lintian~/checks/control-file.desc 2006-09-21 15:06:59.000000000 +0300
30 +++ lintian/checks/control-file.desc 2006-09-21 15:12:48.000000000 +0300
32 section. These specify source package relationships, and should be in
33 the source section of the control file.
35 +Tag: debian-control-with-out-commented-binary-section
37 +Info: The Debian control file contains a binary section which is commented out.
38 + The binary section is not used and should thus be removed from
39 + the Debian control file.
41 Tag: debian-control-with-duplicate-fields
43 Info: One of the paragraphs of your debian/control contains the same