The following commit has been merged in the master branch: commit cb815e536d7e33646c2cc6b23d14cee0a2d7e35c Author: Adam D. Barratt <[EMAIL PROTECTED]> Date: Sat Nov 29 15:11:11 2008 +0000
Initialise %default_colors before creating the global output object. * lib/Lintian/Output.pm: + Make sure the default list of colours is initialised before attempting to use it. Thanks, gregor herrmann. (Closes: #507241) diff --git a/debian/changelog b/debian/changelog index b4362e0..be61ffb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,7 +14,10 @@ lintian (2.1.1) unstable; urgency=low * lib/Lab.pm: + [FL] Fix breakage of populate_with_dist() I introduced in 2.1.0. - + * lib/Lintian/Output.pm: + + [ADB] Make sure the default list of colours is initialised before + attempting to use it. Thanks, gregor herrmann. (Closes: #507241) + -- Adam D. Barratt <[EMAIL PROTECTED]> Fri, 28 Nov 2008 21:47:33 +0000 lintian (2.1.0) unstable; urgency=low diff --git a/lib/Lintian/Output.pm b/lib/Lintian/Output.pm index 08a1e87..02beb03 100644 --- a/lib/Lintian/Output.pm +++ b/lib/Lintian/Output.pm @@ -113,10 +113,10 @@ our @EXPORT_OK = (@{$EXPORT_TAGS{messages}}, 'string'); # for the non-OO interface -our $GLOBAL = new Lintian::Output; - my %default_colors = ( 'E' => 'red' , 'W' => 'yellow' , 'I' => 'cyan' ); +our $GLOBAL = new Lintian::Output; + sub new { my ($class, %options) = @_; my $self = { %options }; -- Debian package checker -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]