[Reportbug-maint] Bug#659013: reportbug: Should use a http proxy when http_proxy environment is set

Sandro Tosi morph at debian.org
Sun Feb 19 19:20:56 UTC 2012


reassign 659013 python-debianbts
thanks

On Tue, Feb 7, 2012 at 13:50, Petter Reinholdtsen <pere at 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





More information about the Reportbug-maint mailing list