]> git.donarmstrong.com Git - debbugs.git/commitdiff
if src:, return the source package immediately
authorDon Armstrong <don@donarmstrong.com>
Mon, 3 Aug 2009 14:25:15 +0000 (07:25 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 3 Aug 2009 14:25:15 +0000 (07:25 -0700)
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";