On Wed, Jun 20, 2001 at 08:17:03AM -0700, Sean 'Shaleh' Perry wrote: > > Somewhere around line 1100 of /usr/bin/lintian (not sure exactly > > where), you could essentially have the following code: > > > > { > > local $/; > > open FILELIST, "$base/index"; > > my $filelist = <FILELIST>; > > if ($filelist eq "./\n") { > > print "W: no files in binary package $pkg\n"; > > next PACKAGE; > > } > > } > > > > correct. The hard part is not outputting any other errors because of it. > Avoiding the no copyright, no docs, etc would not be as easy.
That's what the "next PACKAGE;" achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/