Package: whohas
Version: 0.24-1
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Please find attached a patch that fix urls for OpenBSD packages.
Note that the error was is the file generated in ~/.whohas/OpenBSD_4.6.list.

Also note that current versions of OpenBSD:

http://www.openbsd.org/4.{7,8}_packages/

does not exist on OpenBSD website, this was reported a few months ago:

http://marc.info/?l=openbsd-www&m=127542698920447

Instead, upstream could maybe query openports.se, same service as NetBSD 
pkgsrc.se.

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-26-generic (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages whohas depends on:
ii  libwww-perl                   5.837-1    simple and consistent interface to
ii  libxml-simple-perl            2.18-3     Perl module for reading and writin
ii  perl                          5.10.1-16  Larry Wall's Practical Extraction 

whohas recommends no packages.

whohas suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJM9u2PAAoJEJmGUYuaqqCls+AP/3WxFWNN1B4zhBKZmL6fM8dE
UBZNsEUf6vG9jpkqtNQOvq6ic6MTRvmscqRAFDL0cDgFi9jDj7LEfOl99vwlwZVR
FS5alfU5WGEMtYSkkDVrrilt5TPMAx9z3NYKYsZ0QGFYJ8maHLbHz/AYnag6GJEc
vzvNMpjYc6XkuMiEL/ZHccO6LQv4ctas8cP3RJAg7v8JhAf2m4beNq0IhwYBsWOu
/A1bchrWzbwUbgoX6yF/wiCqE8wq92RrmpBKNSrg5Buato44svk7xcovVdC9lTHK
ksik89W7mqGz9KsjcKH46LNnZKm7/wA6//ufN72E2Cb9wq5GP3qI6umIPomJQgm8
pC/ieqZ2k5ffqVaCuXCUWWgAzlL4LPoLJLr/JfhQnWBe0ptLMMfwYD6AMsJivaA2
9eN414FwjXHmpZ3i5SP1wnj8AV5CdlVeca6TCO72pXcMb9b8eMFjuaKUsglewzKu
8N72LOJlUMZm/STYeFh6DaDNStheEOy6ccrRREbcYGdvfQ11QqLq9mq3d+P/ZDag
rHcRnKsUQ25TI3N3P+7mLgcaDb1NtSGTI9CsvFHch8qIR8Rl+WF0v3YZA4GrjV8b
akMQCag4UACGg6YbnjU52EemUSkA5NC94H2l6rtkpXH/WuEPhC7itmcl93w7RQDN
WJ/nyY+CRQf/OBQnGK8Z
=LXYX
-----END PGP SIGNATURE-----
--- whohas      2010-04-05 00:42:48.000000000 +0200
+++ whohas.new  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/) {

Reply via email to