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
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-05-20 11:30:25 +0000
3+++ debian/changelog 2012-01-02 23:09:27 +0000
4@@ -1,3 +1,10 @@
5+distribute (0.6.16-1ubuntu0.1) oneiric-proposed; urgency=low
6+
7+ * setuptools/package_index.py:
8+ - add easy_install HTTPMessage fix from 0.6.19 (LP: #910965)
9+
10+ -- Julian Taylor <jtaylor@ubuntu.com> Mon, 02 Jan 2012 23:51:58 +0100
11+
12 distribute (0.6.16-1) unstable; urgency=medium
13
14 * New upstream version.
15
16=== modified file 'setuptools/package_index.py'
17--- setuptools/package_index.py 2011-05-20 11:30:25 +0000
18+++ setuptools/package_index.py 2012-01-02 23:09:27 +0000
19@@ -580,7 +580,7 @@
20 size = -1
21 if "content-length" in headers:
22 # Some servers return multiple Content-Length headers :(
23- content_length = headers.getheaders("Content-Length")[0]
24+ content_length = headers.get("Content-Length")
25 size = int(content_length)
26 self.reporthook(url, filename, blocknum, bs, size)
27 tfp = open(filename,'wb')

Subscribers

People subscribed via source and target branches

to all changes: