[oe] [STABLE][PATCH 023/125] seppuku: add support for working behind the proxy
Koen Kooi
k.kooi at student.utwente.nl
Tue Jun 23 09:14:39 UTC 2009
On 23-06-09 10:56, Marcin Juszkiewicz wrote:
> From: Dmitry Eremin-Solenikov<dbaryshkov at gmail.com>
>
> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov at gmail.com>
> Signed-off-by: Marcin Juszkiewicz<marcin at juszkiewicz.com.pl>
Acked-by: Koen Kooi <koen at openembedded.org>
> ---
> classes/seppuku.bbclass | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass
> index ab8096e..546738d 100644
> --- a/classes/seppuku.bbclass
> +++ b/classes/seppuku.bbclass
> @@ -319,6 +319,12 @@ python seppuku_eventhandler() {
> passw = bb.data.getVar("SEPPUKU_PASS", data, True)
> product = bb.data.getVar("SEPPUKU_PRODUCT", data, True)
> component = bb.data.getVar("SEPPUKU_COMPONENT", data, True)
> + proxy = bb.data.getVar('HTTP_PROXY', data, True )
> + if (proxy):
> + phl = urllib2.ProxyHandler({'http' : proxy})
> + poster.add_handler(phl)
> + opener.add_handler(phl)
> +
> # evil hack to figure out what is going on
> debug_file = open(os.path.join(bb.data.getVar("TMPDIR", data, True),"..","seppuku-log"),"a")
>
More information about the Openembedded-devel
mailing list