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

Bug#507241: lintian: --color not working any more



On Sat, 2008-11-29 at 12:12 -0800, Russ Allbery wrote:
> "Adam D. Barratt" <adam@adam-barratt.org.uk> writes:
> 
> > I'm guessing you're calling lintian with "-i"? If so, that's because the
> > extra output is generated by piping lintian's output to lintian-info,
> > which now causes the colour to be disabled when using "auto".
> >
> > I'm looking at a patch that makes lintian able to generate the output
> > itself, thus allowing the combination of -i and --color=auto to work
> > again (and will post it to the list for review once I've done some more
> > testing).
> 
> A short-term fix would be to have Lintian check whether stdout is a tty
> before spawning lintian-info, but your fix is the better one, so if you're
> close to having it working already, we should just go with that.

The latest version (as posted in
<1228058424.11958.113.camel@kaa.jungle.aubergine.my-net-space.net>)
works in all of the tests I tried, including a harness run against a
very small repository.

I believe it incorporates all of Frank's suggestions but I'd appreciate
any further feedback on it before committing.

Regards,

Adam



Reply to: