Merge lp:~jtaylor/ubuntu/oneiric/distribute/fix-910965 into lp:ubuntu/oneiric/distribute

Proposed by Julian Taylor
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~jtaylor/ubuntu/oneiric/distribute/fix-910965
Merge into: lp:ubuntu/oneiric/distribute
Diff against target: 27 lines (+8/-1)
2 files modified
debian/changelog (+7/-0)
setuptools/package_index.py (+1/-1)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/oneiric/distribute/fix-910965
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+87303@code.launchpad.net

Description of the change

Note the fix does not reintroduce issue 196 as the method only returns one entry of the header even if there are multiple. see http://docs.python.org/release/3.1.3/library/email.message.html#email.message.Message __getitem__
https://bitbucket.org/tarek/distribute/issue/196/
https://bitbucket.org/tarek/distribute/issue/206/

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-05-20 11:30:25 +0000
+++ debian/changelog 2012-01-02 23:09:27 +0000
@@ -1,3 +1,10 @@
1distribute (0.6.16-1ubuntu0.1) oneiric-proposed; urgency=low
2
3 * setuptools/package_index.py:
4 - add easy_install HTTPMessage fix from 0.6.19 (LP: #910965)
5
6 -- Julian Taylor <jtaylor@ubuntu.com> Mon, 02 Jan 2012 23:51:58 +0100
7
1distribute (0.6.16-1) unstable; urgency=medium8distribute (0.6.16-1) unstable; urgency=medium
29
3 * New upstream version.10 * New upstream version.
411
=== modified file 'setuptools/package_index.py'
--- setuptools/package_index.py 2011-05-20 11:30:25 +0000
+++ setuptools/package_index.py 2012-01-02 23:09:27 +0000
@@ -580,7 +580,7 @@
580 size = -1580 size = -1
581 if "content-length" in headers:581 if "content-length" in headers:
582 # Some servers return multiple Content-Length headers :(582 # Some servers return multiple Content-Length headers :(
583 content_length = headers.getheaders("Content-Length")[0]583 content_length = headers.get("Content-Length")
584 size = int(content_length)584 size = int(content_length)
585 self.reporthook(url, filename, blocknum, bs, size)585 self.reporthook(url, filename, blocknum, bs, size)
586 tfp = open(filename,'wb')586 tfp = open(filename,'wb')

Subscribers

People subscribed via source and target branches

to all changes: