1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 807_correspondent_docs_to_devs.dpatch by Dmitry Rozhkov <dmitry.rozhkov@nokia.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: An additional check for having doc packages for every dev package
9 Index: checks/control-file.desc
10 ===================================================================
11 --- lintian.old/checks/control-file.desc (revision 6821)
12 +++ lintian.new/checks/control-file.desc (working copy)
14 silently fix this problem by removing the dependency, but it may indicate
15 a more subtle bug (misspelling or cutting and pasting the wrong package
18 +Tag: correspondent-doc-package-absent
20 +Info: The given develepment package doesn't have a corresponding
21 + documentation package which is supposed to describe the API
22 + provided by the development package.
23 Index: checks/control-file
24 ===================================================================
25 --- lintian.old/checks/control-file (revision 6821)
26 +++ lintian.new/checks/control-file (working copy)
28 if (!$category && $binary_control->{'section'} =~ m%^([^/]+)/% && $1 ne 'contrib');
31 +# Check that all -dev packages are submitted to repository together with
32 +# correspondent -doc packages
33 +my (@dev_bins, %doc_bins);
34 +for my $binary_control (@binary_controls){
35 + if ($binary_control->{'package'} =~ m/^([\w|-]+)-dev$/){
38 + if ($binary_control->{'package'} =~ m/^([\w|-]+)-doc$/){
42 +for my $dev_bin (@dev_bins){
43 + if (! defined ($doc_bins{$dev_bin})){
44 + tag "correspondent-doc-package-absent", "Package $dev_bin-dev";