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

Bug#766468: [checks/nmu] canonicalize chops off ">"



Package: lintian
Version: 2.5.28
Severity: wishlist
Tags: patch

The canonicalize function is checks/nmu.pm chops off final ">" from the address. Although it doesn't seem to break anything in practice, it's a bit strange. I've attached patch to fix it.

--
Jakub Wilk
diff --git a/checks/nmu.pm b/checks/nmu.pm
--- a/checks/nmu.pm
+++ b/checks/nmu.pm
@@ -132,7 +132,7 @@
 # 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;
 }
 

Reply to: