Merge ~cjwatson/launchpad-buildd:fix-charm-snap-build-proxy into launchpad-buildd:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 4f97aedb638012b9ff0d889fab38244d7d2681d9
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad-buildd:fix-charm-snap-build-proxy
Merge into: launchpad-buildd:master
Diff against target: 23 lines (+5/-0)
1 file modified
lpbuildd/charm.py (+5/-0)
Reviewer Review Type Date Requested Status
Cristian Gonzalez (community) Approve
Review via email: mp+405750@code.launchpad.net

Commit message

Actually pass proxy arguments through to build-charm

Description of the change

To post a comment you must log in.
Revision history for this message
Cristian Gonzalez (cristiangsp) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lpbuildd/charm.py b/lpbuildd/charm.py
2index 0838fe7..dcfc546 100644
3--- a/lpbuildd/charm.py
4+++ b/lpbuildd/charm.py
5@@ -50,6 +50,9 @@ class CharmBuildManager(SnapBuildProxyMixin, DebianBuildManager):
6 def doRunBuild(self):
7 """Run the process to build the charm."""
8 args = []
9+ args.extend(self.startProxy())
10+ if self.revocation_endpoint:
11+ args.extend(["--revocation-endpoint", self.revocation_endpoint])
12 for snap, channel in sorted(self.channels.items()):
13 args.extend(["--channel", "%s=%s" % (snap, channel)])
14 if self.branch is not None:
15@@ -65,6 +68,8 @@ class CharmBuildManager(SnapBuildProxyMixin, DebianBuildManager):
16
17 def iterate_BUILD_CHARM(self, retcode):
18 """Finished building the charm."""
19+ self.stopProxy()
20+ self.revokeProxyToken()
21 if retcode == RETCODE_SUCCESS:
22 print("Returning build status: OK")
23 return self.deferGatherResults()

Subscribers

People subscribed via source and target branches