]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Packages.pm
if src:, return the source package immediately
[debbugs.git] / Debbugs / Packages.pm
index f9020bae8095aab35aa7db4557ceb31b50be9ac4..a7bf363d8ef5ead440e98f8f3fd0ae595a3b4360 100644 (file)
@@ -144,6 +144,9 @@ sub binarytosource {
     # need an extra cache for speed here.
     return () unless defined $gBinarySourceMap;
 
+    if ($binname =~ m/^src:(.+)$/) {
+       return $1;
+    }
     if (not tied %_binarytosource) {
         tie %_binarytosource, MLDBM => $gBinarySourceMap, O_RDONLY or
              die "Unable to open $gBinarySourceMap for reading";