From: Jeroen van Wolffelaar Date: Fri, 24 Feb 2006 03:24:36 +0000 (+0000) Subject: Make a reminder that fb_suite dealing isn't always giving correct results, X-Git-Tag: switch-to-templates~36 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=202eb3b349348d04e15926777d7a3b7f8526c557;p=deb%2Fpackages.git Make a reminder that fb_suite dealing isn't always giving correct results, I'll fix it later, but it's currently too hard to think about correctly --- diff --git a/lib/Packages/Search.pm b/lib/Packages/Search.pm index b2f4e2c..e863717 100644 --- a/lib/Packages/Search.pm +++ b/lib/Packages/Search.pm @@ -387,6 +387,9 @@ sub read_entry_simple { my %virt = split /\01/o, $virt; debug( "read_entry_simple: key=$key, archives=". join(" ",(keys %$archives)).", suite=$suite", 1) if DEBUG; + # FIXME: not all of the 2^4=16 combinations of empty(results), + # empty(virt{suite}), empty(fb_result), empty(virt{fb_suite}) are dealt + # with correctly, but it's adequate enough for now return [ $virt{$suite} ] unless defined $result; foreach (split /\000/o, $result) { my @data = split ( /\s/o, $_, 8 );