]> git.donarmstrong.com Git - debbugs.git/commitdiff
merge master
authorDon Armstrong <don@donarmstrong.com>
Fri, 29 Nov 2013 19:45:09 +0000 (11:45 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 7 Sep 2025 00:16:24 +0000 (17:16 -0700)
Debbugs/Common.pm

index b06d3289421e62b1bf6ca0ed5b3b59706c4be4ee..0c73617e68591c20604ef0b7f3ed0c247d3bc36e 100644 (file)
@@ -497,8 +497,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) {