[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bugs on machine



On Sat, Dec 09, 2006 at 07:23:52PM +0100, Luca Bedogni wrote:
> Is there a way to know all the bugs affecting packages installed on a machine? 
> Something similar to wnpp-alert, but catching all the bugs insted of O, RFP 
> or similar.
I don't think so.  AFAIK the BTS doesn't support retrieving bug index pages for
multiple packages, so you have to loop over them; you don't want to do this
several hundred times without delay, since it is not entirely inexpensive for
the BTS server.  devscripts bts command handles this nicely, so you can do
something like:

  # crontab?
  dpkg-query '-Wf${Package}\n' |xargs bts --cache --cache-mode=full cache 

Then you can query the bugs with bts -o show; unfortunately, it doesn't appear
to allow doing so for multiple packages.  This might be a bug(?).  You could,
of course, do a shell loop over that command, if you use a sufficiently stable
browser..

I also note the existence of reportbug's querybts command.

Justin



Reply to: