From 073e8b1d643591e10b55dd7f78cca29515649dca Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Mon, 23 Aug 2010 12:23:34 +0200 Subject: [PATCH] sponsor-patch: Use bzr-builddeb to build branches --- sponsor-patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sponsor-patch b/sponsor-patch index 6d3b9c6..9c264c8 100755 --- a/sponsor-patch +++ b/sponsor-patch @@ -530,7 +530,10 @@ def main(script_name, bug_number, build, edit, keyid, upload, verbose=False): Print.info("Failed to update timetamp in debian/changelog.") # Build source package - cmd = ["debuild", "--no-lintian", "-S"] + if patch: + cmd = ['debuild', '--no-lintian', '-S'] + elif branch: + cmd = ['bzr', 'bd', '-S', '--', '--no-lintian'] previous_version = task.get_previous_version() cmd.append("-v" + previous_version.full_version) if previous_version.upstream_version == changelog.upstream_version \