Package: whohas
Version: 0.21-3
Severity: normal
Tags: patch

Searching for pokerth with whohas gives the following result:
http://www.freebsd.org/cgi/pds.cgi?ports/www/pokerth
But pokerth is a game, thus located in ports/games/pokerth.
The attached patch fixes the issue for me.
However, I think linking to pds.cgi is not good, as it does not
carry too much information about the port. IMHO 
http://cvsweb.FreeBSD.org/ports/games/pokerth would be better.
Just drop the following line from the patch, to achieve this:
$url =~ s,http://cvsweb.FreeBSD.org/,http://www.freebsd.org/cgi/pds.cgi?,i;

Regards
Evgeni

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-x31-1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages whohas depends on:
ii  libwww-perl                   5.820-1    WWW client/server library for Perl
ii  perl                          5.10.0-18  Larry Wall's Practical Extraction 

whohas recommends no packages.

whohas suggests no packages.

-- no debconf information
--- whohas-0.21/whohas  2008-12-02 02:13:21.000000000 +0100
+++ whohas-0.21.patched/whohas  2008-12-30 10:41:30.000000000 +0100
@@ -499,7 +499,9 @@
                        ($names[$now],$versions[$now]) = 
&combos_freebsd($anchor);
                        push @repos, "";
                        push @sizes, "";
-                       push @urls,  
"http://www.freebsd.org/cgi/pds.cgi?ports/www/".$names[$now];
+                       my $url = (split /"/, $lines[$i])[3];
+                       $url =~ 
s,http://cvsweb.FreeBSD.org/,http://www.freebsd.org/cgi/pds.cgi?,i;
+                       push @urls,  $url;
                        $now++;
                        push @dates, "";
                }

Reply via email to