mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
Replace check_call with error and quit
This commit is contained in:
parent
d68b83af1d
commit
a5c5215959
@ -340,7 +340,9 @@ class SourcePackage(object):
|
||||
if destdir:
|
||||
cmd.append(destdir)
|
||||
Logger.command(cmd)
|
||||
subprocess.check_call(cmd, cwd=self.workdir)
|
||||
if subprocess.call(cmd, cwd=self.workdir):
|
||||
Logger.error('Source unpack failed.')
|
||||
sys.exit(1)
|
||||
|
||||
def debdiff(self, newpkg, diffstat=False):
|
||||
"""Write a debdiff comparing this src pkg to a newer one.
|
||||
@ -357,7 +359,9 @@ class SourcePackage(object):
|
||||
if diffstat:
|
||||
cmd = ('diffstat', '-p1', difffn)
|
||||
Logger.command(cmd)
|
||||
subprocess.check_call(cmd)
|
||||
if subprocess.call(cmd):
|
||||
Logger.error('diffstat failed.')
|
||||
sys.exit(1)
|
||||
return os.path.abspath(difffn)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user