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

[lintian] 07/15: r/html_reports: Make maintainer_url a bit more concise



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit f8f5ead21e6ca6fa89c069c0e7cc7a1631b8d585
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Feb 7 22:43:50 2014 +0100

    r/html_reports: Make maintainer_url a bit more concise
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 reporting/html_reports | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/reporting/html_reports b/reporting/html_reports
index f9de05a..f90db48 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -709,10 +709,8 @@ exit 0;
 # this without coordinating with QA.
 sub maintainer_url {
     my ($maintainer) = @_;
-    my ($email) = ($maintainer =~ /<([^>]+)>/);
-    my ($regular, $full);
-    if ($email) {
-        my $id = $email;
+    if ($maintainer =~ m/<([^>]+)>/) {
+        my $id = $1;
         $id =~ tr/a-zA-Z0-9_.@=+-/_/c;
         return "$id.html";
     } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: