From: Don Armstrong Date: Sat, 30 Nov 2013 03:02:21 +0000 (-0800) Subject: revert part of 593feb86; Source_maintainer has a different format, and this wouldn... X-Git-Tag: release/2.6.0~269 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=322f9b644df1e99fe9eff9f0c515fe0d258a75fb revert part of 593feb86; Source_maintainer has a different format, and this wouldn't parse maintainers properly anyway; this fixes #730835 --- diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index abc98dc..fdf6792 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -435,11 +435,8 @@ sub __add_to_hash { binmode($fh,':encoding(UTF-8)'); while (<$fh>) { chomp; - my @elements = split /\t/; - next unless @elements >=2; - # we do this because the source maintainer file contains the - # archive location, which we don't care about - my ($key,$value)=($elements[0],$elements[-1]); + next unless m/^(\S+)\s+(\S.*\S)\s*$/; + my ($key,$value)=($1,$2); $key = lc $key; $forward->{$key}= $value; if (defined $reverse) {