ubuntu-iso: Exit nonzero rather than crash if a wrong parameter is passed

(LP: #637020).
This commit is contained in:
Benjamin Drung 2010-12-18 12:59:08 +01:00
parent 4c6ee076c2
commit 5fc7c352cd
2 changed files with 5 additions and 2 deletions

4
debian/changelog vendored
View File

@ -9,6 +9,8 @@ ubuntu-dev-tools (0.108) UNRELEASED; urgency=low
* pull-lp-source: Unquote URI to get "+" instead of "%2B" in the file name
(LP: #681114).
* sponsor-patch: Allow updating the build environment if the build failed.
* ubuntu-iso: Exit nonzero rather than crash if a wrong parameter is passed
(LP: #637020).
[ Colin Watson ]
* grep-merges: New tool.
@ -24,7 +26,7 @@ ubuntu-dev-tools (0.108) UNRELEASED; urgency=low
--buildresult is specified.
* sponsor-patch: Support building with pbuilder-dist.
-- Benjamin Drung <bdrung@ubuntu.com> Fri, 17 Dec 2010 22:47:30 +0100
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 18 Dec 2010 12:57:29 +0100
ubuntu-dev-tools (0.107) experimental; urgency=low

View File

@ -30,7 +30,8 @@ def extract(iso, path):
stdout, stderr = pipe.communicate()
if pipe.returncode != 0:
raise Exception, stderr
sys.stderr.write(stderr)
sys.exit(pipe.returncode)
return stdout