lintian: r118 - in trunk: checks debian
Author: jeroen
Date: 2004-04-01 01:26:52 +0200 (Thu, 01 Apr 2004)
New Revision: 118
Modified:
trunk/checks/debconf
trunk/checks/debconf.desc
trunk/debian/changelog
Log:
checks/debconf{,.desc}:
+ [JvW] Add an error for a bogus default for a boolean template
(Closes: #236846)
Modified: trunk/checks/debconf
===================================================================
--- trunk/checks/debconf 2004-03-31 21:28:27 UTC (rev 117)
+++ trunk/checks/debconf 2004-03-31 23:26:52 UTC (rev 118)
@@ -97,6 +97,12 @@
} elsif ($template->{type} eq 'multiselect') {
$isselect=1;
$usesmultiselect=1;
+ } elsif ($template->{type} eq 'boolean') {
+ print "E: $pkg $type: boolean-template-has-bogus-default ".
+ "$template->{template} $template->{default}\n"
+ if defined $template->{default}
+ and $template->{default} ne 'true'
+ and $template->{default} ne 'false';
}
if ($isselect and not exists $template->{choices}) {
Modified: trunk/checks/debconf.desc
===================================================================
--- trunk/checks/debconf.desc 2004-03-31 21:28:27 UTC (rev 117)
+++ trunk/checks/debconf.desc 2004-03-31 23:26:52 UTC (rev 118)
@@ -61,6 +61,11 @@
Info: If your package uses the `multiselect' type in a debconf template, it
must depend on debconf (>= 0.2.26).
+Tag: boolean-template-has-bogus-default
+Type: error
+Info: The `boolean' type in a debconf template, can have only two values: true
+ and false. The default has been set to something different.
+
Tag: no-template-description
Type: error
Info: The templates file contains a template without a `Description:' field.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-03-31 21:28:27 UTC (rev 117)
+++ trunk/debian/changelog 2004-03-31 23:26:52 UTC (rev 118)
@@ -5,9 +5,12 @@
* [FL] add udeb support (Closes: #216117)
Thanks to Joey Hess for his input. Many changes, mostly to
frontend/lintian, checks/debconf and checks/files
-
+
* checks/binaries:
+ [JvW] Ignore static binaries in /usr/lib/debug
+ * checks/debconf{,.desc}:
+ + [JvW] Add an error for a bogus default for a boolean template
+ (Closes: #236846)
* checks/fields.desc:
+ [FL] Fix some wrong policy references
* checks/menu-format:
@@ -20,7 +23,7 @@
error and remove it from the list of usual interpreters.
(Closes: #240806)
- -- Frank Lichtenheld <djpig@debian.org> Sat, 27 Mar 2004 20:55:15 +0100
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Thu, 1 Apr 2004 01:10:34 +0200
lintian (1.22.12) unstable; urgency=low
Reply to: