]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm: Only rebuild the indexes if the packages have changed
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Feb 2012 14:09:18 +0000 (14:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Apr 2012 15:21:22 +0000 (16:21 +0100)
commit3021136e7b42ab64ca16f30c88467c4b00d51ee0
treeb97aed86663455715a3a4b59a84946424aca1620
parentff533176a875663be797058bc35fa8ff3f9f8147
package_rpm: Only rebuild the indexes if the packages have changed

This change farms the solvedb creation out to a separate script which
handles creation of the index, only if mtime of any of the packages
has changed.

For a core-image-minimal set of rpm's this saves ~20s of a 45s rootfs
build. For core-image-sato it saves 1 minute of a 5 minute rootfs build.
The more packages in the system, the bigger the saving will be.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass
scripts/rpm-createsolvedb.py [new file with mode: 0755]