generic-poky/bitbake/lib/bb
Robert Yang 094742bed2 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 is a bb.process.run() which will invoke the Popen to run command,
use it for simplify the code.

For the:
p4file = os.popen("%s%s files %s" % (p4cmd, p4opt, depot))
...
for file in p4file:
    list = file.split()

in bitbake/lib/bb/fetch2/perforce.py, it should be an error in the past,
since it didn't use readline() to read the pipe, but directly used the
split() for the pipe. Use the bb.process.run would fix the problem since
bb.process.run will return strings.

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

[YOCTO #2075]

(Bitbake rev: 8d6700255a6d4dda403c89b171a6d4a1883e5aae)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-23 11:35:11 +01:00
..
fetch2 replace os.popen with subprocess.Popen 2012-05-23 11:35:11 +01:00
parse ConfHandler.py: Add a hook for config parsing 2012-04-13 12:04:18 +01:00
pysh make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
server bitbake: Add client socket info for BitBakeServerConnection 2012-02-23 22:52:16 +00:00
tests bitbake/tests: Add test of the git fetcher 2012-05-13 20:09:53 +01:00
ui replace os.popen with subprocess.Popen 2012-05-23 11:35:11 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py Update version to 1.15.2 (correspdoning to Yocto 1.2 release) 2012-05-01 20:50:41 +01:00
build.py bb.build: use relative log links, not absolute 2012-03-29 09:44:45 +01:00
cache.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
cache_extra.py bitbake: Add description into the cache and clean up cache duplication 2012-02-02 16:55:28 +00:00
checksum.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
codeparser.py bitbake: refactor out codeparser cache into a separate class 2012-05-23 11:33:18 +01:00
command.py ConfHandler.py: Add a hook for config parsing 2012-04-13 12:04:18 +01:00
compat.py bitbake: Add missing file 2011-05-07 08:49:28 +01:00
cooker.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
daemonize.py Apply some 2to3 transforms that don't cause issues in 2.6 2010-07-02 15:41:33 +01:00
data.py data/runqueue.py: Fix commented out test code after variable name changes 2012-01-27 09:40:05 +00:00
data_smart.py data_smart: Improve the calculation of config hash 2012-04-17 11:41:31 +01:00
event.py event.py: Add SanityCheck and SanityCheckPassed events 2012-04-24 10:14:47 +01:00
exceptions.py bb.exceptions: don't choke on frames without arguments 2011-06-08 20:38:25 +01:00
methodpool.py Consolidate the exec/eval bits, switch anonfunc to better_exec, etc 2010-07-02 15:41:31 +01:00
monitordisk.py diskspace monitor: assign a default value when only of the interval is set 2012-04-11 00:04:40 +01:00
msg.py bitbake: implement BB_VERBOSE_LOGS 2012-02-28 13:47:10 +00:00
namedtuple_with_abc.py bb.namedtuple_with_abc: add useful util from activestate 2011-06-08 20:38:23 +01:00
persist_data.py persist_data: survive if sqlite3 couldn't enable the shared cache 2012-02-22 20:25:29 +00:00
process.py make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
providers.py meta/classes: Convert to use appendVar and appendVarFlags 2012-03-05 10:36:53 -08:00
runqueue.py bitbake/runqueue: Drop check_stamp_fn, it's obsolete and should not be used 2012-05-11 11:54:27 +01:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
taskdata.py taskdata: fix string formatting of an error message 2011-09-20 22:22:21 +01:00
utils.py bitbake/utils: Convert vercmp_string() to use vercmp internally 2012-05-04 16:44:57 +01:00