syncpackage: Print an error message if the source-only build fails (LP: #668749).

This commit is contained in:
Benjamin Drung 2010-10-30 20:36:42 +02:00
parent 7241b30c16
commit 45c8f13d65
2 changed files with 8 additions and 2 deletions

3
debian/changelog vendored
View File

@ -35,8 +35,9 @@ ubuntu-dev-tools (0.105) UNRELEASED; urgency=low
- Don't add quotation marks to changelog entries (LP: #668805).
- Show a error message instead of raising an error if Ubuntu contains a
newer version.
- Print an error message if the source-only build fails (LP: #668749).
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 30 Oct 2010 20:10:39 +0200
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 30 Oct 2010 20:34:55 +0200
ubuntu-dev-tools (0.104) experimental; urgency=low

View File

@ -372,7 +372,12 @@ def sync_dsc(script_name, dscurl, debian_dist, release, name, email, bugs,
cmd += ["-k" + keyid]
if verbose:
print_command(script_name, cmd)
subprocess.check_call(cmd, env=env)
returncode = subprocess.call(cmd, env=env)
if returncode != 0:
print >> sys.stderr, ("%s: Error: Source-only build with debuild "
"failed. Please check build log above.") % \
(script_name)
sys.exit(1)
def get_debian_dscurl(package, dist, release, version=None, component=None):
if dist is None: