base.bbclass: Replace os.system with subprocess call.
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Aug 2009 02:24:57 +0000 (19:24 -0700)
committerKhem Raj <raj.khem@gmail.com>
Mon, 24 Aug 2009 02:24:57 +0000 (19:24 -0700)
commitf73c64e7295be1e1065f898b49f50a02e812161c
treef8c706e1d81cd1919e0f694ebdbc69c7cb791d5e
parent8043677ecf08eca924fdd18822712ccad229a438
base.bbclass: Replace os.system with subprocess call.

Often gzip is reporting broken pipe errors with do_unpack of
tar.gz files.

If you use the commands described above to extract a tar.gz file, gzip
sometimes emits a Broken pipe error message. This can safely be ignored
if tar extracted all files without any other error message.

We do not let python install its SIGPIPE handler and use subprocess call
to invoke the command.

This is based on the following python bug report.
http://bugs.python.org/issue1652

Signed-off-by: Khem Raj <raj.khem@gmail.com>
classes/base.bbclass