Package: whohas
Version: 0.23-2
Severity: normal
Tags: patch
Fetching the OpenBSD list and searching it is fine, but a second query returns
no results because the @repo variable is never populated. The attached patch
uses @name instead for the match loop.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages whohas depends on:
ii libwww-perl 5.833-1 Perl HTTP/WWW client/server librar
ii libxml-simple-perl 2.18-2 Perl module for reading and writin
ii perl 5.10.1-8 Larry Wall's Practical Extraction
whohas recommends no packages.
whohas suggests no packages.
-- no debconf information
--- whohas-0.23.orig/program/whohas
+++ whohas-0.23/program/whohas
@@ -729,7 +729,7 @@
close OUT;
}
my $matcher = $_[0];
- for (my $i = 0; $i < @repos; $i++) {
+ for (my $i = 0; $i < @names; $i++) {
if ($names[$i] =~ /$matcher/) {
&pretty_print($cols,@columns,$distroname,$names[$i],$versions[$i],$sizes[$i],$dates[$i],$repos[$i],$urls[$i]);
}