Package: cli-common-dev
Version: 0.7.1
Severity: normal
Tags: patch

The dh_cligacpolicy tool prints a warning if the package doesn't have
the required dependency on "cli-common-dev (>= 0.5.7)".

However, the check it does is too strict and gives a false positive if
the package's Build-Depends(-Indep) span over more than one line. The
following patch fixes this:


--- /usr/bin/dh_cligacpolicy    2010-09-19 20:59:12.000000000 +0200
+++ /tmp/dh_cligacpolicy        2010-09-19 20:59:07.780000002 +0200
@@ -87,7 +87,7 @@
   open(FILE, 'debian/control');
   my @filedata = <FILE>;
   close(FILE);
-  if (!($filedata[0] =~ /Build-Depends(-Indep)?: .*cli-common-dev \(>= 
0\.5\.7\)/)) {
+  if (!($filedata[0] =~ /Build-Depends(-Indep)?: (.*\n\s+)*.*cli-common-dev 
\(>= 0\.5\.7\)/)) {
       warning("Warning! No Build-Depends(-Indep) on cli-common-dev (>= 
0.5.7)!");
   }
 }

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (10, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-020635rc6-generic (SMP w/2 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cli-common-dev depends on:
ii  debhelper                     8.0.0      helper programs for debian/rules
ii  libxml-dom-perl               1.44-1     Perl module for building DOM Level
ii  mono-devel [strong-name-tool] 2.6.7-2    Mono development tools
ii  mono-utils [cil-disassembler] 2.6.7-2    Mono utilities
ii  perl-modules                  5.10.1-14  Core Perl modules

cli-common-dev recommends no packages.

cli-common-dev suggests no packages.

-- no debconf information
--- /usr/bin/dh_cligacpolicy    2010-09-19 20:59:12.000000000 +0200
+++ /tmp/dh_cligacpolicy        2010-09-19 20:59:07.780000002 +0200
@@ -87,7 +87,7 @@
   open(FILE, 'debian/control');
   my @filedata = <FILE>;
   close(FILE);
-  if (!($filedata[0] =~ /Build-Depends(-Indep)?: .*cli-common-dev \(>= 
0\.5\.7\)/)) {
+  if (!($filedata[0] =~ /Build-Depends(-Indep)?: (.*\n\s+)*.*cli-common-dev 
\(>= 0\.5\.7\)/)) {
       warning("Warning! No Build-Depends(-Indep) on cli-common-dev (>= 
0.5.7)!");
   }
 }

Reply via email to