Merge lp:~cjwatson/launchpad-buildd/snap-default-branch into lp:launchpad-buildd

Proposed by Colin Watson
Status: Merged
Merged at revision: 220
Proposed branch: lp:~cjwatson/launchpad-buildd/snap-default-branch
Merge into: lp:launchpad-buildd
Diff against target: 46 lines (+13/-8)
2 files modified
buildsnap (+6/-8)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad-buildd/snap-default-branch
Reviewer Review Type Date Requested Status
Evan (community) Approve
Review via email: mp+323604@code.launchpad.net

Commit message

buildsnap: If --git-repository is passed but --git-path is not, build the default branch of the repository (LP: #1688224).

To post a comment you must log in.
Revision history for this message
Evan (ev) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'buildsnap'
--- buildsnap 2017-02-10 14:53:12 +0000
+++ buildsnap 2017-05-04 10:31:32 +0000
@@ -114,11 +114,10 @@
114 cmd.insert(1, "-Ossl.cert_reqs=none")114 cmd.insert(1, "-Ossl.cert_reqs=none")
115 else:115 else:
116 assert self.options.git_repository is not None116 assert self.options.git_repository is not None
117 assert self.options.git_path is not None117 cmd = ["git", "clone"]
118 cmd = [118 if self.options.git_path is not None:
119 "git", "clone", "-b", self.options.git_path,119 cmd.extend(["-b", self.options.git_path])
120 self.options.git_repository, self.name,120 cmd.extend([self.options.git_repository, self.name])
121 ]
122 if not self.ssl_verify:121 if not self.ssl_verify:
123 env["GIT_SSL_NO_VERIFY"] = "1"122 env["GIT_SSL_NO_VERIFY"] = "1"
124 self.run_build_command(cmd, env=env)123 self.run_build_command(cmd, env=env)
@@ -181,9 +180,8 @@
181 parser.add_option("--revocation-endpoint",180 parser.add_option("--revocation-endpoint",
182 help="builder proxy token revocation endpoint")181 help="builder proxy token revocation endpoint")
183 options, args = parser.parse_args()182 options, args = parser.parse_args()
184 if (options.git_repository is None) != (options.git_path is None):183 if options.git_repository is None and options.git_path is not None:
185 parser.error(184 parser.error("--git-path requires --git-repository")
186 "must provide both --git-repository and --git-path or neither")
187 if (options.branch is None) == (options.git_repository is None):185 if (options.branch is None) == (options.git_repository is None):
188 parser.error(186 parser.error(
189 "must provide exactly one of --branch and --git-repository")187 "must provide exactly one of --branch and --git-repository")
190188
=== modified file 'debian/changelog'
--- debian/changelog 2017-02-10 14:55:42 +0000
+++ debian/changelog 2017-05-04 10:31:32 +0000
@@ -1,3 +1,10 @@
1launchpad-buildd (143) UNRELEASED; urgency=medium
2
3 * buildsnap: If --git-repository is passed but --git-path is not, build
4 the default branch of the repository (LP: #1688224).
5
6 -- Colin Watson <cjwatson@ubuntu.com> Thu, 04 May 2017 00:29:40 +0100
7
1launchpad-buildd (142) trusty; urgency=medium8launchpad-buildd (142) trusty; urgency=medium
29
3 * lpbuildd.binarypackage: Pass DEB_BUILD_OPTIONS=noautodbgsym if we have10 * lpbuildd.binarypackage: Pass DEB_BUILD_OPTIONS=noautodbgsym if we have

Subscribers

People subscribed via source and target branches

to all changes: