]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Packages.pm
make the limit transcript quote things to track down some bugs
[debbugs.git] / Debbugs / Packages.pm
index 0a16c04084dc0ca9125b994e7beda5545539023b..482938da9310a672ddf36dc37fce57768789f64f 100644 (file)
@@ -269,7 +269,7 @@ sub binary_to_source{
            tie %_sourcetobinary, MLDBM => $config{source_binary_map}, O_RDONLY or
                die "Unable top open $gSourceBinaryMap for reading";
        }
-       for my $maybe_sourcepkg (@binary) {
+       for my $maybe_sourcepkg (@binaries) {
            if (exists $_sourcetobinary{$maybe_sourcepkg}) {
                push @source,[$maybe_sourcepkg,$_] for keys %{$_sourcetobinary{$maybe_sourcepkg}};
            }
@@ -611,7 +611,7 @@ sub make_source_versions {
                    }
                    my @srcinfo = binary_to_source(binary => $pkg,
                                                   version => $version,
-                                                  arch    => $arch);
+                                                  length($arch)?(arch    => $arch):());
                    if (not @srcinfo) {
                        # We don't have explicit information about the
                        # binary-to-source mapping for this version