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 11:04:45 +0000 (12:04 +0100)
commit361dc7026113f7eb3595d6b83e367957e50ee029
treed87709be4aececcb33238efc094dcc4a7fbae84b
parent94c0ae51a214c344ce8eddc80229664623d2c7c4
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]

(From OE-Core rev: 57f843146ed62c04c23bc380dc8cb38aba264f1c)

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