lintian: r184 - branches/1.23.0/checks
Author: djpig
Date: 2004-04-18 04:21:56 +0200 (Sun, 18 Apr 2004)
New Revision: 184
Modified:
branches/1.23.0/checks/fields
branches/1.23.0/checks/fields.desc
Log:
udebs should have section "debian-installer"
Modified: branches/1.23.0/checks/fields
===================================================================
--- branches/1.23.0/checks/fields 2004-04-18 01:13:59 UTC (rev 183)
+++ branches/1.23.0/checks/fields 2004-04-18 02:21:56 UTC (rev 184)
@@ -188,18 +188,25 @@
unfold("section", \$section);
- my @parts = split /\//, $section, 2;
+ if ($type eq 'udeb') {
+ unless ($section eq 'debian-installer') {
+ print "W: $pkg $type: wrong-section-for-udeb $section\n";
+ }
+ } else {
- if ($parts[0] =~ /non-US/i) {
+ my @parts = split /\//, $section, 2;
+
+ if ($parts[0] =~ /non-US/i) {
print "I: $pkg $type: non-us-spelling\n" if ($parts[0] ne "non-US");
if ($parts[1] and not $known_non_us_parts{$parts[1]}) {
- print "W: $pkg $type: unknown-section $section\n";
+ print "W: $pkg $type: unknown-section $section\n";
}
- } elsif (scalar @parts > 1) {
+ } elsif (scalar @parts > 1) {
print "W: $pkg $type: unknown-section $section\n" unless $known_archive_parts{$parts[0]};
print "W: $pkg $type: unknown-section $section\n" unless $known_sections{$parts[1]};
- } else {
+ } else {
print "W: $pkg $type: unknown-section $section\n" unless $known_sections{$parts[0]};
+ }
}
}
Modified: branches/1.23.0/checks/fields.desc
===================================================================
--- branches/1.23.0/checks/fields.desc 2004-04-18 01:13:59 UTC (rev 183)
+++ branches/1.23.0/checks/fields.desc 2004-04-18 02:21:56 UTC (rev 184)
@@ -226,6 +226,10 @@
is in the contrib distribution.
Ref: policy 2.4
+Tag: wrong-section-for-udeb
+Type: warning
+Info: udeb packages should have `Section: debian-installer'.
+
Tag: no-priority-field
Type: warn
Info: The package does not have a `Priority:' field in its control file.
Reply to: