[oe-commits] Dmitry Eremin-Solenikov : seppuku: add support for working behind the proxy
git version control
git at git.openembedded.org
Wed Jul 1 14:10:18 UTC 2009
Module: openembedded.git
Branch: stable/2009
Commit: 5ec2bbfb55ff13807a6e91b458672b8795e33a32
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5ec2bbfb55ff13807a6e91b458672b8795e33a32
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Date: Mon Jun 22 22:56:29 2009 +0000
seppuku: add support for working behind the proxy
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-commits
mailing list