projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fdaa72
)
Use os.system to ignore INT/QUIT signal while calling depanneur
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 24 Sep 2012 06:00:44 +0000
(14:00 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 24 Sep 2012 06:00:44 +0000
(14:00 +0800)
subprocess.call does not ignore INT/QUIT signal, which result in
gbs exit first before depanneur finished
Change-Id: I88dccad5295f29f07c9d6206287f0f2b6210e5e0
gitbuildsys/cmd_build.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_build.py
b/gitbuildsys/cmd_build.py
index e823bc49fd18b5cfbcad4c4743bdc0d8f85c689f..3442e43b5d280fe9855c33ae82191d3f329f2346 100644
(file)
--- a/
gitbuildsys/cmd_build.py
+++ b/
gitbuildsys/cmd_build.py
@@
-353,7
+353,8
@@
def do(opts, args):
cmd += ['--squash-patches-until=%s' % opts.squash_patches_until]
msger.debug("running command: %s" % ' '.join(cmd))
- if subprocess.call(cmd):
+ retcode = os.system(' '.join(cmd))
+ if retcode != 0:
msger.error('rpmbuild fails')
else:
dist = [opt[len('--dist='):] for opt in cmd \