Merge lp:~cjwatson/launchpad-buildd/fix-https-proxy into lp:launchpad-buildd

Proposed by Colin Watson
Status: Merged
Merged at revision: 203
Proposed branch: lp:~cjwatson/launchpad-buildd/fix-https-proxy
Merge into: lp:launchpad-buildd
Diff against target: 25 lines (+3/-2)
2 files modified
buildsnap (+1/-2)
debian/changelog (+2/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad-buildd/fix-https-proxy
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+305930@code.launchpad.net

Commit message

buildsnap: Set https_proxy to an http:// URL rather than https://; the former is more accurate anyway and the latter breaks npm (LP: #1588870).

Description of the change

buildsnap: Set https_proxy to an http:// URL rather than https://; the former is more accurate anyway and the latter breaks npm (LP: #1588870).

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'buildsnap'
2--- buildsnap 2016-08-08 10:02:43 +0000
3+++ buildsnap 2016-09-16 10:45:51 +0000
4@@ -127,8 +127,7 @@
5 env = {"SNAPCRAFT_LOCAL_SOURCES": "1"}
6 if self.options.proxy_url:
7 env["http_proxy"] = self.options.proxy_url
8- https_url = self.options.proxy_url.replace('http://', 'https://')
9- env["https_proxy"] = https_url
10+ env["https_proxy"] = self.options.proxy_url
11 self.run_build_command(
12 ["snapcraft", "pull"],
13 path=os.path.join("/build", self.name),
14
15=== modified file 'debian/changelog'
16--- debian/changelog 2016-08-08 10:02:43 +0000
17+++ debian/changelog 2016-09-16 10:45:51 +0000
18@@ -2,6 +2,8 @@
19
20 * buildsnap: Catch urllib2.URLError as well as urllib2.HTTPError when
21 trying to revoke the proxy token (LP: #1610916).
22+ * buildsnap: Set https_proxy to an http:// URL rather than https://; the
23+ former is more accurate anyway and the latter breaks npm (LP: #1588870).
24
25 -- Colin Watson <cjwatson@ubuntu.com> Thu, 07 Jul 2016 11:07:49 +0100
26

Subscribers

People subscribed via source and target branches

to all changes: