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
Fixes #32 #33
Fixes #32 #33
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
import shutil | ||
import tempfile | ||
import urllib | ||
import urllib2 | ||
import urlparse | ||
import zc.buildout | ||
|
||
|
@@ -177,7 +178,16 @@ def download(self, url, md5sum=None, path=None): | |
|
||
try: | ||
try: | ||
tmp_path, headers = urllib.urlretrieve(url, tmp_path) | ||
# begin proxy patch | ||
# Commenting the following line: | ||
# tmp_path, headers = urllib.urlretrieve(url, tmp_path) | ||
# to fix https://bugs.launchpad.net/zc.buildout/+bug/484735 | ||
tmp_sock = urllib2.urlopen(url) | ||
tmp_file = open(tmp_path, 'w') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, should I redo the pull request? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you push new commits to this branch, github will automatically update this pull request. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I did it :) |
||
tmp_file.write(tmp_sock.read()) | ||
tmp_file.close() | ||
# end proxy | ||
|
||
if not check_md5sum(tmp_path, md5sum): | ||
raise ChecksumError( | ||
'MD5 checksum mismatch downloading %r' % url) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be a good idea to link to the bug (https://bugs.launchpad.net/zc.buildout/+bug/484735).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment to the original report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant specifically in the changelog. When people go to pypi.python.org and try to see what changed in version X.Y.Z, it's very nice to have a clickable URL where you can read more about the bug (why it happens, how it's fixed, does it affect me? etc.).