[SCM] Debian package checker branch, master, updated. 1.24.4-59-g7b10d14
The following commit has been merged in the master branch:
commit 7b10d14d7aac35c17810dd7fb4c379c8c01cb7df
Author: Jordà Polo <jorda@ettin.org>
Date: Sun Aug 24 07:30:24 2008 +0200
Fix colored output for overridden and experimental tags
Overridden and experimental tags are now colored by their E|W|I code, as it
used to be prior to the recent changes in type handling.
diff --git a/lib/Tags.pm b/lib/Tags.pm
index ddf706b..43f7e92 100644
--- a/lib/Tags.pm
+++ b/lib/Tags.pm
@@ -272,6 +272,7 @@ sub print_tag {
$extra = " @$information" if @$information;
$extra = '' if $extra eq ' ';
my $code = get_tag_code($tag_info);
+ my $tag_color = $colors{$code};
$code = 'X' if exists $tag_info->{experimental};
$code = 'O' if $tag_info->{overridden}{override};
my $type = '';
@@ -279,9 +280,9 @@ sub print_tag {
my $output = "$code: $pkg_info->{pkg}$type: ";
if ($color eq 'always' || ($color eq 'auto' && -t STDOUT)) {
- $output .= colored($tag_info->{tag}, $colors{$code});
+ $output .= colored($tag_info->{tag}, $tag_color);
} elsif ($color eq 'html') {
- $output .= colored_html($tag_info->{tag}, $colors{$code});
+ $output .= colored_html($tag_info->{tag}, $tag_color);
} else {
$output .= $tag_info->{tag};
}
--
Debian package checker
Reply to: