[lintian] 02/03: html_reports: Strip unnecessary "" around names
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit ac17f6486246b16a693eb4802b2f4fe49253a572
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jan 24 11:04:35 2016 +0000
html_reports: Strip unnecessary "" around names
With this, we now sort "Adam C. Powell, IV" (among other) under "A"
rather than "Other". The quotes are now also gone from the maintainer
report and thus the name is displayed like any other.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/html_reports | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/reporting/html_reports b/reporting/html_reports
index 657a5b5..002d225 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -808,6 +808,11 @@ sub parse_lintian_log {
$anchor =~ s/[+]/_x2b/g;
$anchor =~ s/[:]/_x3a/g;
}
+ if (substr($maintainer, 0, 1) eq q{"}) {
+ # Strip out ""-quotes, which is required in d/control for some
+ # maintainers.
+ $maintainer =~ s/^"(.*)" <(.*)>$/$1 <$2>/;
+ }
# Check if we've seen the URL for this maintainer before
# and, if so, map them to the same person as the previous
@@ -850,6 +855,11 @@ sub parse_lintian_log {
# between hashes).
if ($uploaders) {
for my $uploader (@{$uploaders}) {
+ if (substr($uploader, 0, 1) eq q{"}) {
+ # Strip out ""-quotes, which is required in d/control for some
+ # uploaders.
+ $uploader =~ s/^"(.*)" <(.*)>$/$1 <$2>/;
+ }
$uploader = map_maintainer($uploader);
next if $uploader eq $maintainer;
$by_uploader{$uploader}{$source}{$source_version}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: