[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#548210: False-positive in lib-recommends-documentation



tags 548210 + patch
thanks

Ross Burton a écrit :
> W: libgupnp-doc: lib-recommends-documentation recommends: libgssdp-doc

This is due to an error in the regexp on the package name: (?!...)
preceded by .+ is void, since .+ can match whatever is excluded by
(?!...). A simple fix is attached.

Cheers,

-- 
Stéphane
>From 19effa1b1161a22f269584276f48b0f75e80b52d Mon Sep 17 00:00:00 2001
From: Stephane Glondu <steph@glondu.net>
Date: Fri, 25 Sep 2009 22:40:32 +0200
Subject: [PATCH] Fix lib-recommends-documentation test

---
 checks/fields |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/checks/fields b/checks/fields
index 58da092..a337dfe 100644
--- a/checks/fields
+++ b/checks/fields
@@ -589,7 +589,7 @@ if (($type eq "binary") || ($type eq 'udeb')) {
 
 				tag "lib-recommends-documentation", "$field: $part_d_orig"
 					if ($field eq 'recommends'
-					&& $pkg =~ m/^lib.+(?!-(?:dev|docs?))$/ && $part_d_orig =~ m/-docs?$/);
+					&& $pkg =~ m/^lib/ && $pkg !~ m/-(dev|docs?)$/ && $part_d_orig =~ m/-docs?$/);
 			}
 
 			for my $pkg (@seen_obsolete_packages) {
-- 
1.6.3.3


Reply to: