Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyp2rpm to respect --proxy or env http_proxy/https_proxy… #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

@@ -56,7 +56,37 @@ def __init__(self, package=None, version=None,
if not self.template.endswith('.spec'):
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