Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PyPi now requires HTTPS after CVE-2016-5699.
http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html
This patch fixes this error on Fedora.
$ yolk --version
Traceback (most recent call last):
File "/usr/bin/yolk", line 9, in
load_entry_point('yolk==0.4.3', 'console_scripts', 'yolk')()
File "/usr/lib/python2.7/site-packages/yolk/cli.py", line 1090, in main
my_yolk.run()
File "/usr/lib/python2.7/site-packages/yolk/cli.py", line 180, in run
self.pypi = CheeseShop(self.options.debug)
File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 109, in init
self.get_cache()
File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 127, in get_cache
self.fetch_pkg_list()
File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 184, in fetch_pkg_list
package_list = self.list_packages()
File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 202, in list_packages
return self.xmlrpc.list_packages()
File "/usr/lib64/python2.7/xmlrpclib.py", line 1240, in call
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1599, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 64, in request
fhandle = opener.open(request)
File "/usr/lib64/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 475, in error
return self._call_chain(_args)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(_args)
File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Must access using HTTPS instead of HTTP
Signed-off-by: Vinson Lee vlee@freedesktop.org