Skip to content

Conversation

gss2002
Copy link

@gss2002 gss2002 commented Aug 9, 2018

pyp2rpm doesnt seem to work with HTTP_PROXY or http_proxy or https_proxy or HTTPS_PROXY env variable and also doesn't work with --proxy. So after debugging and testing against a corporate enterprise proxy server I have come up with the following fix.

This fixes the following issue: #24

@gss2002
Copy link
Author

gss2002 commented Aug 9, 2018

Failure not from this change

self.template = '{0}.spec'.format(self.template)
self.rpm_name = rpm_name
self.proxy = proxy
#check and set proxy settings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be a function/method on it's own?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hroncok I will look at doing that today. I was away on vaca sorry for slow response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants