openSUSE Forums > openSUSE Build Service (OBS) » OSC behind a firewall

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-Mar-2009, 14:45
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 10
MichaelFreedman hasn't been rated much yet
Default OSC behind a firewall

Is there any way to specify a proxy for OSC to use?

Thanks,
Mike
Reply With Quote
  #2 (permalink)  
Old 01-Jul-2009, 02:00
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 1
vorname hasn't been rated much yet
Default Re: OSC behind a firewall

So ... the question is old, but I had the same problem and it takes me some time to fix it, so I describe what I did... because it seems that not a lot oft people fix it yet//

My problem was that I'm behind a https- proxy (and was not allowed do go around it) and in this case, the python-lib urllib2 is the main problem, because it can not deal with it.

So first you have to patch the urrlib2 (and the httplib) - the patch can be found here:
Issue 1424152: urllib/urllib2: HTTPS over (Squid) Proxy fails - Python tracker

Next, you have to comment out some lines in the osc-lib, in the conf.py file
(I found the file in /usr/lib/python2.6/osc/conf.py)
comment out lines 204 - 207

if 'https-proxy' in os.enviro:
del os.environ[https-proxy]
if 'HTTPS-PROXY' in os.enviro:
del os.environ[HTTPS-PROXY]

I did it that way and now everything works fine...
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2