Bug#500720: lintian: versioned-dependency-satisfied-by-perl triggered by conflicts and replaces
Package: lintian
Version: 2.0.0
Tags: patch
Looking at lintian.debian.org, the new
versioned-dependency-satisfied-by-perl check incorrectly triggers on the
perl and perl-modules packages due to their Conflicts and Replaces fields.
The attached patch makes the check simply ignore all the non-dependency
relations.
--
Niko Tyni ntyni@debian.org
>From 90b9ca3ceb2d0ee54d343c3821a1ca065e4a717d Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Tue, 30 Sep 2008 21:52:50 +0300
Subject: [PATCH] Ignore non-dependency relations for the versioned-dependency-satisfied-by-perl check.
---
checks/fields | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/checks/fields b/checks/fields
index d9beaf0..c81517c 100644
--- a/checks/fields
+++ b/checks/fields
@@ -530,6 +530,7 @@ if (($type eq "binary") || ($type eq 'udeb')) {
# only trigger this for the the preferred alternative
tag "versioned-dependency-satisfied-by-perl", "$field: $part_d_orig"
if $alternatives[0][-1] eq $part_d_orig
+ && $field =~ /depends|recommends|suggests/
&& perl_core_has_version($d_pkg, $d_version->[0], $d_version->[1]);
tag "depends-exclusively-on-makedev", "$field",
@@ -717,6 +718,7 @@ if ($type eq "source") {
# only trigger this for the the preferred alternative
tag "versioned-dependency-satisfied-by-perl", "$field: $part_d_orig"
if $alternatives[0][-1] eq $part_d_orig
+ && $field =~ /build-depends/
&& perl_core_has_version($d_pkg, $d_version->[0], $d_version->[1]);
}
--
1.5.6.5
Reply to: