aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/buildhistory_analysis.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-05-29 22:53:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 10:58:10 +0100
commite83d8e58a6b107eea87df0ec233a1bc932b2c6ea (patch)
tree7373c71af06a1cc504ee251615c80ae3c07e6347 /meta/lib/oe/buildhistory_analysis.py
parent57f843146ed62c04c23bc380dc8cb38aba264f1c (diff)
downloadopenembedded-core-contrib-e83d8e58a6b107eea87df0ec233a1bc932b2c6ea.tar.gz
meta: replace os.popen with subprocess.Popen
Replace os.popen with subprocess.Popen since the older function would fail (more or less) silently if the executed program cannot be found There are both bb.process.run() and bb.process.Popen() which wraps the subprocess module, use it for simplifying the code. Note: We don't need the "2>/dev/null" or "2>&1" since bb.process.run() can handle it, it will raise exception when error occurs, we should handle the exception ourselves if we want to ignore the error. 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>
Diffstat (limited to 'meta/lib/oe/buildhistory_analysis.py')
0 files changed, 0 insertions, 0 deletions