Package: cli-common-dev Version: 0.8.2 Severity: normal Tags: patch if a package Build-Depends on cli-common-dev (>= 0.8~), then dh_cligacpolicy reports wrong warning: "Warning! No Build-Depends(-Indep) on cli-common-dev (>= 0.5.7)!"
The attached patch fixes the bug by replacing the condition with more proper one. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (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 cli-common-dev depends on: ii debhelper 9.20120909 ii libxml-dom-perl 1.44-1 ii mono-devel [strong-name-tool] 2.10.8.1-6 ii mono-utils [cil-disassembler] 2.10.8.1-6 ii perl-modules 5.14.2-15 cli-common-dev recommends no packages. cli-common-dev suggests no packages. -- no debconf information
--- dh_cligacpolicy.orig 2012-12-03 23:47:23.000000000 +0700 +++ dh_cligacpolicy 2012-12-03 23:48:54.772722367 +0700 @@ -87,7 +87,8 @@ open(FILE, 'debian/control'); my @filedata = <FILE>; close(FILE); - if (!($filedata[0] =~ /Build-Depends(-Indep)?: .*cli-common-dev \(>= 0\.5\.7\)/)) { + if ($filedata[0] =~ m/Build-Depends(?:\-Indep)?\:(?:.*\n\s+)*.*cli\-common\-dev\s*\(>=\s*([^\)]+)\)/ && + system("dpkg", "--compare-versions", $1, ">=", "0.5.7") != 0) { warning("Warning! No Build-Depends(-Indep) on cli-common-dev (>= 0.5.7)!"); } }
signature.asc
Description: OpenPGP digital signature