Message info
 
To:Petter Reinholdtsen From:Sandro Tosi Subject:Bug#659013: reportbug: Should use a http proxy when http_proxy environment is set Date:Sun, 19 Feb 2012 20:20:56 +0100
 

reassign 659013 python-debianbts
thanks

On Tue, Feb 7, 2012 at 13:50, Petter Reinholdtsen <pere@hungry.com> wrote:
>
> Package: reportbug
> Version: 4.12.6
>
> I discovered this while testing Debian in a network where all Internet
> connections need to go throught a proxy. Reportbug do not work in such
> setup. Setting the http_proxy environment variable to tell reportbug to
> use a proxy did not help.
>
> reportbug were unable to fetch madison information, and failed to fetch.
> already reported bugs from BTS.
>
> Please make reportbug work also in networks where all HTTP requests have
> to go through a HTTP proxy.
>
> I called reportbug like this on the command line:
>
> http_proxy=http://webcache:3128 reportbug powertop

here http://webcache:3128 doesn't exists but:

$ http_proxy=http://webcache:3128 python -c "import debianbts; print
debianbts.get_status(623456)[0].subject"
ebview: migration for libeb16

For the remaining reportbug parts, it uses urllib2, which reads (and
handle) correctly http_proxy.

Cheers,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org