]> code.ossystems Code Review - openembedded-core.git/commit
scripts: replace os.system with subprocess.call
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 29 May 2012 14:53:07 +0000 (22:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 May 2012 09:56:28 +0000 (10:56 +0100)
commit57f843146ed62c04c23bc380dc8cb38aba264f1c
treec2c678fdf02cd54bb4f81f8f06018b3d37542344
parenta07d03cc6f67c88feb9813ae7deb6e4a93552dfe
scripts: replace os.system with subprocess.call

Replace os.system with subprocess.call since the older function would
fail (more or less) silently if the executed program cannot be found

More info:
http://docs.python.org/library/subprocess.html#subprocess-replacements

[YOCTO #2454]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/rpm-createsolvedb.py
scripts/swabber-strace-attach