lintian: r89 - trunk/checks
Author: djpig
Date: 2004-03-05 02:05:04 +0100 (Fri, 05 Mar 2004)
New Revision: 89
Modified:
trunk/checks/debconf
Log:
Set template name if missing to avoid
"Use of uninitialized value" perl warnings in later
error messages.
Modified: trunk/checks/debconf
===================================================================
--- trunk/checks/debconf 2004-03-05 00:17:26 UTC (rev 88)
+++ trunk/checks/debconf 2004-03-05 01:05:04 UTC (rev 89)
@@ -82,6 +82,7 @@
if (not exists $template->{template}) {
print "E: $pkg $type: no-template-name\n";
+ $template->{template} = 'no-template-name';
} elsif ($template->{template}!~m|[A-Za-z0-9.+-](?:/[A-Za-z0-9.+-])|) {
print "E: $pkg $type: malformed-template-name $template->{template}\n";
}
Reply to: