X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=blobdiff_plain;f=Debbugs%2FCommon.pm;h=abc98dc6efe6f5d65191ae3f012004c4ff8891f1;hp=732ac2e5bf2f6c02fcaa4b718cb2a7780e3bfc2b;hb=593feb86562b711efd71e4d03239e188ddeea051;hpb=9907f86ebd19706ce79b2b0cf2f54e8ae4112427 diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index 732ac2e..abc98dc 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -435,8 +435,11 @@ sub __add_to_hash { binmode($fh,':encoding(UTF-8)'); while (<$fh>) { chomp; - next unless m/^(\S+)\s+(\S.*\S)\s*$/; - my ($key,$value)=($1,$2); + 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]); $key = lc $key; $forward->{$key}= $value; if (defined $reverse) {