Description: update search URL for OpenBSD repositories
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586537
Author: Guillaume Delacour <gui@iroqwa.org>
Reviewed-by: Jonathan Wiltshire <jmw@debian.org>
Last-Update: 2010-12-05

--- whohas-0.24.orig/program/whohas	2010-04-05 00:42:48.000000000 +0200
+++ whohas-0.24/program/whohas		2010-12-02 01:40:16.509481035 +0100
@@ -751,7 +751,7 @@
 sub openbsd {
 	my $rel = $openbsd_release;
 	my $arch = "i386";
-	my $baseurl = "http://www.openbsd.org/".$rel."_packages/".$arch.".html";
+	my $baseurl = "http://www.openbsd.org/".$rel."_packages/";
 	my @names;
 	my @versions;
 	my @urls;
@@ -769,7 +769,7 @@
 		}
 		close IN;
 	} else {
-		my @lines = split /\n/, &fetchdoc($baseurl);
+		my @lines = split /\n/, &fetchdoc($baseurl.$arch.".html");
 		my $now = 0;
 		for (my $i = 0; $i < @lines; $i++) {
 			if ($lines[$i] =~ /^<td><b><a/) {
