Commit fae99206 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

scripts/get_maintainer.pl: don't deduplicate unnamed addresses ie: mailing lists

Fix a defect with the first mailing list address being used for each
subsequent mailing list.

Updated to 0.26-beta6.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Cc: Florian Mickler <florian@mickler.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b9e2331d
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
use strict; use strict;
my $P = $0; my $P = $0;
my $V = '0.26-beta5'; my $V = '0.26-beta6';
use Getopt::Long qw(:config no_auto_abbrev); use Getopt::Long qw(:config no_auto_abbrev);
...@@ -1036,7 +1036,7 @@ sub push_email_address { ...@@ -1036,7 +1036,7 @@ sub push_email_address {
push(@email_to, [format_email($name, $address, $email_usename), $role]); push(@email_to, [format_email($name, $address, $email_usename), $role]);
} elsif (!email_inuse($name, $address)) { } elsif (!email_inuse($name, $address)) {
push(@email_to, [format_email($name, $address, $email_usename), $role]); push(@email_to, [format_email($name, $address, $email_usename), $role]);
$email_hash_name{lc($name)}++; $email_hash_name{lc($name)}++ if ($name ne "");
$email_hash_address{lc($address)}++; $email_hash_address{lc($address)}++;
} }
...@@ -1659,7 +1659,7 @@ sub deduplicate_email { ...@@ -1659,7 +1659,7 @@ sub deduplicate_email {
($name, $address) = parse_email($email); ($name, $address) = parse_email($email);
if ($deduplicate_name_hash{lc($name)}) { if ($name ne "" && $deduplicate_name_hash{lc($name)}) {
$name = $deduplicate_name_hash{lc($name)}->[0]; $name = $deduplicate_name_hash{lc($name)}->[0];
$address = $deduplicate_name_hash{lc($name)}->[1]; $address = $deduplicate_name_hash{lc($name)}->[1];
$matched = 1; $matched = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment