]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
get-maintainer.pl: Dont fall over when L: contains a display name
authorLars Kurth <lars.kurth@citrix.com>
Fri, 17 Jan 2020 15:10:57 +0000 (16:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Jan 2020 15:10:57 +0000 (16:10 +0100)
Prior to this change e-mail addresses of the form "display name
<email>" would result into empty output. Also see
https://lists.xenproject.org/archives/html/xen-devel/2020-01/msg00753.html

Signed-off-by: Lars Kurth <lars.kurth@citrix.com>
Reviewed-by: Julien Grall <julien@xen.org>
scripts/get_maintainer.pl

index 2e661f47d8b50da3bf6604512a155f9d881d90a2..48e07370e8d462ced70a1de13ec8134b4eed65ba 100755 (executable)
@@ -1073,7 +1073,7 @@ sub add_categories {
            my $ptype = $1;
            my $pvalue = $2;
            if ($ptype eq "L") {
-               my $list_address = $pvalue;
+               my ($list_name, $list_address) = parse_email($pvalue);            
                my $list_additional = "";
                my $list_role = get_list_role($i);