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

Bug#615073: lintian.debian.org: provide (dd-)list of packages affected by a specific tag



On Sat, Feb 26, 2011 at 11:21:14AM +0100, Niels Thykier wrote:
> For now you can pull the raw log[1] and do:
> 
>   grep $tag lintian.log | cut -f 2 -d: | sort -u
> 
> To get the name of all packages that are affected by a tag - depending
> on the tag it may list binary packages (e.g.
> description-contains-homepage is one of these).

Thanks.

As I didn't want to download the whole lintian.log, I applied the
following screen-scraping recipe of mine:

  $ wget http://lintian.debian.org/tags/description-contains-homepage.html
  $ grep 'h2 class="tag"' description-contains-homepage.html | sed 's|.*>\([^<]\+\)</a.*|\1|'

it's clearly fragile, as all screen-scraping, but it avoids the need of
downloading the whole lintian.log, which might be handy if people wants
to process data related to a single tag.

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Quando anche i santi ti voltano le spalle, |  .  |. I've fans everywhere
ti resta John Fante -- V. Capossela .......| ..: |.......... -- C. Adams

Attachment: signature.asc
Description: Digital signature


Reply to: