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>
Mon, 30 Apr 2012 10:37:30 +0000 (11:37 +0100)
commita66fec6f9c88416eb5ea9fef7603bae9797a9fdb
treea0546201d85785f28be7ab6f023c568f42f7d3af
parent4a745d0f5980dd75d8aca4040cb77dd24a8b3cb6
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.

(From OE-Core rev: 3021136e7b42ab64ca16f30c88467c4b00d51ee0)

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