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

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



Package: lintian
Version: 2.1.0
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In 2.1.0 the friendly --color option doesn't work any more.

If I change the following:

#v+

- --- Output.pm.bak	2008-11-29 10:53:20.000000000 +0100
+++ Output.pm	2008-11-29 11:33:27.000000000 +0100
@@ -112,11 +112,11 @@
 		  @{$EXPORT_TAGS{util}},
 		  'string');
 
+my %default_colors = ( 'E' => 'red' , 'W' => 'yellow' , 'I' => 'cyan' );
+
 # for the non-OO interface
 our $GLOBAL = new Lintian::Output;
 
- -my %default_colors = ( 'E' => 'red' , 'W' => 'yellow' , 'I' => 'cyan' );
- -
 sub new {
     my ($class, %options) = @_;
     my $self = { %options };


#v-

I get --colors=always back.

- --colors=auto still fails because $self->stdout gets changed from
\*STDOUT to \*::OUTPUT_PIPE somewhere and therefore _do_color returns false.
Unfortunately I have no idea where/how this happens ...

Cheers,
gregor

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.200811231333
Locale: LANG=C, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  diffstat            1.46-1               produces graph of changes introduc
ii  dpkg-dev            1.14.23              Debian package development tools
ii  file                4.26-1               Determines file type using "magic"
ii  gettext             0.17-6               GNU Internationalization utilities
ii  intltool-debian     0.35.0+20060710.1    Help i18n of RFC822 compliant conf
ii  libipc-run-perl     0.80-2               Perl module for running processes
ii  libparse-debianchan 1.1.1-2              parse Debian changelogs and output
ii  libtimedate-perl    1.1600-9             Time and date functions for Perl
ii  liburi-perl         1.35.dfsg.1-1        Manipulates and accesses URI strin
ii  man-db              2.5.2-3              on-line manual pager
ii  perl [libdigest-sha 5.10.0-18            Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
ii  libtext-template-perl         1.44-1.2   Text::Template perl module
ii  man-db                        2.5.2-3    on-line manual pager

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkxG94ACgkQOzKYnQDzz+QA3QCgoVcjBtliv3VMA3ebPcxWilMp
pfEAoNUmJbwdBn8YyxgZhmWSJ4HCBTMM
=Brxl
-----END PGP SIGNATURE-----



Reply to: