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

Bug#386014: [checks/debconf] invalid debconf priority



Package: lintian
Version: 1.23.23
Severity: wishlist
Tags: patch

Hi,

The attached patch allow lintian to raise an error if the debconf priority
is unknown. Testing it on the archive gives the following results (I
found only two packages affected by this problem):
  E: aide: unknown-debconf-priority normal
    should be medium
  E: cmucl: unknown-debconf-priority critital
    should be critical

Cheers,

-- 
Thomas Huriaux
--- /usr/share/lintian/checks/debconf.desc	2006-06-25 05:31:54.000000000 +0200
+++ debconf.desc	2006-09-04 18:18:41.000000000 +0200
@@ -265,3 +265,8 @@
  more than about 20 lines, so try to keep the extended description below
  this limit.
 Ref: devref 6.5.3.2
+
+Tag: unknown-debconf-priority
+Type: error
+Info: Valid debconf priorities are low, medium, high or critical.
+Ref: debconf-devel(7)
--- /usr/share/lintian/checks/debconf	2006-08-19 00:19:42.000000000 +0200
+++ debconf	2006-09-04 18:18:29.000000000 +0200
@@ -348,6 +348,9 @@
 		    unless $type eq 'udeb';
 	        $db_input=1;
 	    }
+	    if (m/^\s*(?:db_input|db_text)\s+(\S+)\s+\S+\s/) {
+	      tag "unknown-debconf-priority", "$1" unless ($1 =~ /^["']?(low|medium|high|critical|\$\S+)["']?$/);
+	    }
 	    if (not $isdefault and m/db_fset.*isdefault/) {
 	        # TODO: Perl?
 	        tag "isdefault-flag-is-deprecated", "$file";

Attachment: signature.asc
Description: Digital signature


Reply to: