Lintian-NG – Accessing Lintian’s collection data with 90 lines

 $ LINTIAN_ROOT=. perl lintian-ng ../lintian_2.5.10.dsc
 Successfully unpacked 1 packages
 Did you know that source:lintian/2.5.10 contains 3745 files or/and directories (excl. root dir)
 This useless information was brought to you by Lintian-NG
 $ git describe
 2.5.10-61-g7670427
 $ wc -l lintian-ng
 90 lintian-ng

This includes everything from creating a temporary lab, adding the packages to it and running all of Lintian’s collections on it (parallelised, of cource).

Writing this script yesterday would probably have required 250-300 lines of code to achieve the same. That said, 90 lines are still a bit much to copy/waste into this blog, so I won’t do a “$ cat lintian-ng”. 🙂

If you are interested in how it looks you can (for now) fetch it from http://people.debian.org/~nthykier/lintian-ng/lintian-ng

Oh yeah, “files or/and directories” is actually any (extractable) entry in the tarball…

Advertisements
This entry was posted in Debian, Lintian. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s