]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Packages.pm
* Stop useless overspecification of variables in Debbugs::Packages
[debbugs.git] / Debbugs / Packages.pm
index 1274193631e3b6855fdfd573b00f6b959df68483..5284e2c58f2aeecd459f32f75d96fd4a11f4efd2 100644 (file)
@@ -122,10 +122,11 @@ sub binarytosource {
 
     # TODO: This gets hit a lot, especially from buggyversion() - probably
     # need an extra cache for speed here.
+    return () unless defined $gBinarySourceMap;
 
     if (tied %_binarytosource or
            tie %_binarytosource, 'MLDBM',
-               $Debbugs::Packages::gBinarySourceMap, O_RDONLY) {
+               $gBinarySourceMap, O_RDONLY) {
        # avoid autovivification
        my $binary = $_binarytosource{$binname};
        return () unless defined $binary;
@@ -178,7 +179,7 @@ sub sourcetobinary {
 
     if (tied %_sourcetobinary or
            tie %_sourcetobinary, 'MLDBM',
-               $Debbugs::Packages::gSourceBinaryMap, O_RDONLY) {
+               $gSourceBinaryMap, O_RDONLY) {
        # avoid autovivification
        my $source = $_sourcetobinary{$srcname};
        return () unless defined $source;