Merge lp:~blueyed/ubuntu-dev-tools/use-proxy-for-download into lp:~ubuntu-dev/ubuntu-dev-tools/trunk

Proposed by Daniel Hahler
Status: Merged
Merged at revision: 1295
Proposed branch: lp:~blueyed/ubuntu-dev-tools/use-proxy-for-download
Merge into: lp:~ubuntu-dev/ubuntu-dev-tools/trunk
Diff against target: 36 lines (+9/-2)
2 files modified
debian/changelog (+6/-1)
ubuntutools/archive.py (+3/-1)
To merge this branch: bzr merge lp:~blueyed/ubuntu-dev-tools/use-proxy-for-download
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+97905@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work!

review: Approve
Revision history for this message
Stefano Rivera (stefanor) wrote :

This broke the unit tests. Would you mind having a look at fixing them?

Revision history for this message
Daniel Hahler (blueyed) wrote :

I'm not sure about what test exactly broke.. when running "python setup.py test" there appear to be a lot of failures:
http://paste.ubuntu.com/892919/

Apart from that I would like to fix the tests, but need some help obviously.
Thanks! (and sorry for breaking any test in the first place)

Revision history for this message
Stefano Rivera (stefanor) wrote :

Don't worry, I dealt with it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-02-29 21:23:05 +0000
+++ debian/changelog 2012-03-16 15:29:18 +0000
@@ -1,11 +1,16 @@
1ubuntu-dev-tools (0.140) UNRELEASED; urgency=low1ubuntu-dev-tools (0.140) UNRELEASED; urgency=low
22
3 [ Stefano Rivera ]
3 * Bump Standards-Version to 3.9.3, no changes needed.4 * Bump Standards-Version to 3.9.3, no changes needed.
4 * Update machine-readable copyright Format to 1.0.5 * Update machine-readable copyright Format to 1.0.
5 * pbuilder-dist: Use the same chroot, whether the system-architecture was6 * pbuilder-dist: Use the same chroot, whether the system-architecture was
6 the supplied architecture or was chosen by default (LP: #943435)7 the supplied architecture or was chosen by default (LP: #943435)
78
8 -- Stefano Rivera <stefanor@debian.org> Sat, 25 Feb 2012 16:09:53 +02009 [ Daniel Hahler ]
10 * ubuntutools/archive.py: use ProxyHandler in _download_file.
11 This makes use of the system proxy (e.g. http_proxy).
12
13 -- Daniel Hahler <ubuntu@thequod.de> Fri, 16 Mar 2012 16:21:00 +0100
914
10ubuntu-dev-tools (0.139) unstable; urgency=low15ubuntu-dev-tools (0.139) unstable; urgency=low
1116
1217
=== modified file 'ubuntutools/archive.py'
--- ubuntutools/archive.py 2011-11-22 13:57:02 +0000
+++ ubuntutools/archive.py 2012-03-16 15:29:18 +0000
@@ -317,8 +317,10 @@
317 if parsed.scheme == 'file':317 if parsed.scheme == 'file':
318 in_ = open(parsed.path, 'r')318 in_ = open(parsed.path, 'r')
319 else:319 else:
320 proxy = urllib2.ProxyHandler() # uses default proxy from environment
321 opener = urllib2.build_opener(proxy)
320 try:322 try:
321 in_ = urllib2.urlopen(url)323 in_ = opener.open(url)
322 except urllib2.URLError:324 except urllib2.URLError:
323 return False325 return False
324326

Subscribers

People subscribed via source and target branches

to status/vote changes: