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

Bug#401442: lintian: not-using-po-debconf false positives



Package: lintian
Version: 1.23.26
Severity: minor

Hi,

If the debian/ directory contains a /.*template.*/ directory, the
warning not-using-po-debconf is raised. However, there seems to be only
false-positives. Even if nothing prevents a maintainer to put its
templates in a debian/*template* directory, it seems that there are more
false-positives than false-negatives. Therefore, I think it is worth
applying the attached patch.

Packages affected:
  linux-2.6
  linux-kbuild-2.6
  linux-latest-2.6
  linux-modules-extra-2.6
  loop-aes
  xen-3.0
  xen-unstable
(data extracted from
http://merkel.debian.org/~ballombe/lintian-svn/reports/Tnot-using-po-debconf.html)

Cheers,

-- 
Thomas Huriaux
--- /usr/share/lintian/checks/po-debconf	2006-11-11 07:25:34.000000000 +0100
+++ po-debconf	2006-12-03 16:32:32.000000000 +0100
@@ -35,6 +35,7 @@
 my @lang_templates;
 for my $file (readdir(DEB)) {
 	if ($file =~ m/^(.+\.)?templates(\..+)?$/) {
+		next if (-d "debfiles/$file");
 	        $has_template = 1;
 		if ($file =~ m/templates\.\w\w(_\w\w)?$/) {
 			push (@lang_templates, $file);

Attachment: signature.asc
Description: Digital signature


Reply to: