]> git.donarmstrong.com Git - debbugs.git/commitdiff
revert part of 593feb86; Source_maintainer has a different format, and this wouldn...
authorDon Armstrong <don@donarmstrong.com>
Sat, 30 Nov 2013 03:02:21 +0000 (19:02 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sat, 30 Nov 2013 03:02:21 +0000 (19:02 -0800)
Debbugs/Common.pm

index abc98dc6efe6f5d65191ae3f012004c4ff8891f1..fdf67923efc9721db2ae52da71044af328b0e3d3 100644 (file)
@@ -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) {