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

Bug#675163: lintian: Please provide an APT hook to run lintian on package install



Package: lintian
Version: 2.5.8
Severity: wishlist

Inspired by a feature of the Ubuntu Software Center, it would be very
neat to have an apt hook that could run Lintian on packages to be
installed, and prompt the user in case the quality of the package is
found to be below a threshold.

I'm thinking about something along the lines of apt-listchanges (or
apt-listbugs, but I haven't used this last one in ages), which can
either mail the results to the user (which wouldn't make much sense in
this case, in my opinion), or display the results, and prompt the user
whether to abort the installation, or continue.

A few things I think should be configurable are:

 - Obviously the profile to use, leaving it up to lintian by default
 - The number of errors/warnings/pedantic-stuff to trigger a prompt on
 - Whether to prompt the user, or automatically fail the install if a
   threshold is reached (or perhaps even make two threshold: a prompt
   and an auto-fail one)
 - In case of auto-fail, where to send a notification mail to

However, since this hook would only ever be run on .deb files, it might
be a good idea to create a separate profile for that, to avoid a ton of
false-positives and stuff that require the whole lot of binaries built
by the source (or even the source itself) to work reliably.

-- 
|8]




Reply to: