syncpackage, backportpackage, sponsor-patch: Use -nc when building source

packages. Avoids needing build-deps on the build machine.
This commit is contained in:
Stefano Rivera 2011-12-23 22:34:54 +02:00
parent 69d226d489
commit f124357734
4 changed files with 12 additions and 4 deletions

View File

@ -247,7 +247,7 @@ def do_backport(workdir, pkg, suffix, release, release_pocket, build, builder,
'--distribution', bp_dist,
'No-change backport to %s' % release],
cwd=srcdir)
check_call(['debuild', '--no-lintian', '-S', '-sa'], cwd=srcdir)
check_call(['debuild', '--no-lintian', '-S', '-nc', '-sa'], cwd=srcdir)
fn_base = pkg.source + '_' + bp_version.split(':', 1)[-1]

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ubuntu-dev-tools (0.139) UNRELEASED; urgency=low
* syncpackage, backportpackage, sponsor-patch: Use -nc when building source
packages. Avoids needing build-deps on the build machine.
-- Stefano Rivera <stefanor@debian.org> Fri, 23 Dec 2011 22:33:17 +0200
ubuntu-dev-tools (0.138) unstable; urgency=low
[ Benjamin Drung ]

View File

@ -265,7 +265,8 @@ def sync_dsc(src_pkg, debian_dist, release, name, email, bugs, ubuntu_mirror,
subprocess.check_call(cmd)
# Build source package
cmd = ["debuild", "--no-lintian", "-S", "-v" + cur_ver.full_version]
cmd = ["debuild", "--no-lintian", "-nc", "-S",
"-v" + cur_ver.full_version]
if need_orig:
cmd += ['-sa']
if keyid:

View File

@ -225,9 +225,9 @@ class SourcePackage(object):
"""
if self._branch:
cmd = ['bzr', 'builddeb', '-S', '--', '--no-lintian']
cmd = ['bzr', 'builddeb', '-S', '--', '-nc', '--no-lintian']
else:
cmd = ['debuild', '--no-lintian', '-S']
cmd = ['debuild', '--no-lintian', '-nc', '-S']
cmd.append("-v" + previous_version.full_version)
if previous_version.upstream_version == \
self._changelog.upstream_version and upload == "ubuntu":