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

[lintian] 01/01: checks/nmu.pm: Avoid chopping off trailing ">" in emails



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

nthykier pushed a commit to branch master
in repository lintian.

commit a5fbdc631b4c1adfe52f5490e186a2b8c15d2e09
Author: Jakub Wilk <jwilk@debian.org>
Date:   Fri Oct 24 22:59:20 2014 +0200

    checks/nmu.pm: Avoid chopping off trailing ">" in emails
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/nmu.pm    | 2 +-
 debian/changelog | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/nmu.pm b/checks/nmu.pm
index b14a838..52be4e1 100644
--- a/checks/nmu.pm
+++ b/checks/nmu.pm
@@ -132,7 +132,7 @@ sub run {
 # are case-insensitive in the right-hand side.
 sub canonicalize {
     my ($maintainer) = @_;
-    $maintainer =~ s/(<[^>\@]+\@)([\w.-]+)>/$1 . lc ($2)/e;
+    $maintainer =~ s/<([^>\@]+\@)([\w.-]+)>/<$1\L$2>/;
     return $maintainer;
 }
 
diff --git a/debian/changelog b/debian/changelog
index 87196a5..0f5c4ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ lintian (2.5.29) UNRELEASED; urgency=medium
   * checks/dbus.{desc,pm}:
     + [NT] New check by Simon McVittie to discover some dbus
       related issues.  (Closes: #762609)
+  * checks/nmu.pm:
+    + [JW] Avoid chopping off trailing ">" in emails in the
+      canonicalize subroutine.  (Closes: #766468)
   * checks/rules.pm:
     + [JW,NT] Fix undef warning for packages with empty an
       empty d/rules file.  (Closes: #766033)

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


Reply to: