]> code.ossystems Code Review - openembedded-core.git/commit
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>
Thu, 26 Apr 2012 21:07:54 +0000 (22:07 +0100)
commit2fb5f72b47840ed7f540df181595878e3f5ba4c6
tree7649e021b455be5251f7fd675ae3ab351c58c151
parent288b7a9d0e6093f85e4a1d3e34d4332b9c43b47b
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.

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