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

Bug#640834: lintian: detect typoed Debian QA Group address



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

With the attached patch lintian is able to detect spelling mistakes in Debian QA Group e-mail address:

$ lintian -C fields jrexx_1.1.1-6.dsc
E: jrexx source: wrong-debian-qa-address-set-as-maintainer Debian QA Group <package@qa.debian.org>

--
Jakub Wilk
diff --git a/lib/Lintian/Check.pm b/lib/Lintian/Check.pm
--- a/lib/Lintian/Check.pm
+++ b/lib/Lintian/Check.pm
@@ -170,7 +170,8 @@
 
 	# Some additional checks that we only do for maintainer fields.
 	if ($field eq 'maintainer') {
-            if ($mail eq 'debian-qa@lists.debian.org') {
+            if (($mail eq 'debian-qa@lists.debian.org') or
+                ($name =~ /\bdebian\s+qa\b/i and $mail ne 'packages@qa.debian.org')) {
                 tag 'wrong-debian-qa-address-set-as-maintainer', $maintainer;
             } elsif ($mail eq 'packages@qa.debian.org') {
                 tag 'wrong-debian-qa-group-name', $maintainer

Reply to: