On Tuesday 09 August 2005 14:36, Per Marker Mortensen wrote: > At Tue, 9 Aug 2005 14:23:52 +0200, > > That lintian run mentioned above ran fine, the broken packages were > > identified, deleted and re-updated on the next mirror update run. > > Consider the problem solved. > > Christian can you be persuaded to send a copy of your lintian-check > script to [EMAIL PROTECTED], so that the script is archived and > maybe can be used by other people.
It's a quite simple ruby script, running "lintian -C md5" on *.deb and
writing the package's qualified filename to a file if lintian returns
with an error code:
----------snip------------
#!/usr/bin/ruby -w
#
MIRROR_ROOT = "/srv/mirrors/debian"
flist = File.open("debian-badpackages", "w")
dnull = File.open("/dev/null", "w")
errold = $stderr
outold = $stdout
$stderr = dnull
$stdout = dnull
Dir.glob("#{MIRROR_ROOT}/**/*.deb") { |path|
res = system("lintian", "-C", "md5", path)
if(res == false)
flist.puts(path)
outold.puts("\n", path)
else
outold.print(".")
end
}
----------snip------------
--
Christian Reiniger
99% of lawyers give the rest a bad name.
pgp2XWxJgKVqL.pgp
Description: PGP signature

