package_rpm.bbclass: Replace shell provides/requires script with python version
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Apr 2012 19:54:23 +0000 (20:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Apr 2012 10:37:28 +0000 (11:37 +0100)
commit5347f0945f12db0463872cfda2af501e9c011b98
treead445bcace912ce8c33c879d3b34b93c5dac2bc2
parentb9baaa6c80813fcb66c021917ac5ed8ae970c3ad
package_rpm.bbclass: Replace shell provides/requires script with python version

The existing shell script is a fork bomb and forks off hundreds of
grep/cur/wc calls as it reads from its input stream and iterates over
the file data table for each line of input. This patch replaces the
shell code with python code which doesn't exec anything and hence runs
much faster without the exec() overhead. This speeds up rpm packaging
considerably, as can be measured simply by timing it, or watching the
processor utilisation.

(From OE-Core rev: 2fb5f72b47840ed7f540df181595878e3f5ba4c6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass