]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/DoShow.pm
Packages::Search: Implement find_similar
[deb/packages.git] / lib / Packages / DoShow.pm
index 1d21462878d4dbcf0e2a21f8e9d16c48000bcab8..611d65e4e2e1aedea02c7c5f366f078c07046acf 100644 (file)
@@ -120,6 +120,10 @@ sub do_show {
                        my $std = timediff($st1, $st0);
                        debug( "Data search and merging took ".timestr($std) ) if DEBUG;
 
+                       my @similar = find_similar( $pkg, "$DBDIR/xapian/",
+                                                   \%did2pkg );
+                       $contents{similar} = \@similar;
+
                        my $did = $page->get_newest( 'description' );
                        my $desc_md5 = $page->get_newest( 'description-md5' );
                        my @complete_tags = split(/, /, $page->get_newest( 'tag' ));