Manoj Srivastava <[EMAIL PROTECTED]> wrote:

> Package: debian-el
> Version: 27.5-1
> Severity: normal
> 
> Hi,
> 
>         When trying to follow a link to a bug number ( #385797 ) in a
>  gnus article, the following URL is generated:
>  
> http://cgi.debian.org/cgi-bin/search_packages.pl?&searchon=names&version=all&release=all&keywords=#


For a bug number, it should be calling
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=NUMBER instead of the
`/search_packages.pl' form (I don't know what it's used for; maybe it's
obsolete?) so somehow the `thing' that is being passed to
gnus-dbts-browse-debpkg-or-bug doesn't match "[0-9]+$".

Can you insert:

    (message "thing is: %s" thing)

and see what is being passed?

Using `M-x gnus-dbts-browse-debpkg-or-bug' interactively on a bug number
with a leading `#' works fine.  So it's one of those fancy
`gnus-dbts-buttonize-debian' setup that is failing somehow.  Since I
don't use gnus, it's hard for me to test anythinmg.  :-(

>         Which results in (quite rightly):
> Not Found
> 
> The requested URL /cgi-bin/search_packages.pl was not found
> 
> 
>         The following in function seems to be the culprit, found in the
>  file: /usr/share/emacs22/site-lisp/debian-el/gnus-BTS.el
> (defun gnus-dbts-browse-debpkg-or-bug (thing)
>   (interactive "i")
>   (let* ((the-thing (if (null thing)
>                         (thing-at-point 'sexp)
>                       thing))
>          (bugp (string-match "[0-9]+$" the-thing))
>          (bug-or-feature (if bugp
>                              (progn
>                                (string-match "^[^0-9]*\\([0-9]+\\)$" 
> the-thing)
>                                (match-string 1 the-thing))
>                            the-thing))
>          (url (if bugp
>                   "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=";
>                 (concat
>                  "http://cgi.debian.org/cgi-bin/search_packages.pl";
>                  "?&searchon=names&version=all&release=all&keywords="))))
>     (browse-url (concat url bug-or-feature))))

Peter



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to