X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FCommon.pm;h=fdf67923efc9721db2ae52da71044af328b0e3d3;hb=322f9b644df1e99fe9eff9f0c515fe0d258a75fb;hp=abc98dc6efe6f5d65191ae3f012004c4ff8891f1;hpb=52d88842ad08288c8921d61c9d92f1de9265592c;p=debbugs.git 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) {