]> code.ossystems Code Review - openembedded-core.git/commit
Allow for simultaneous do_rootfs tasks with rpm uninative-1.3
authorStephano Cetola <stephano.cetola@linux.intel.com>
Wed, 10 Aug 2016 20:03:16 +0000 (13:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Aug 2016 12:36:06 +0000 (13:36 +0100)
commita92c196449c516fe51786d429078bbb1213bb029
treeed7a7309c9bf4c675c7e42cafcc68eff618c0f70
parentc47288615c05aeec46ced39b2853cdd436703dec
Allow for simultaneous do_rootfs tasks with rpm

Give each rootfs its own RPM channel to use.  This puts the RPM metadata
in a private subdirectory of $WORKDIR, rather than living in DEPLOY_DIR
where other tasks may race with it.

This allows us to reduce the time that the rpm.lock is held to only the
time needed to hardlink the RPMs, allowing the majority of the rootfs
operation to run in parallel.

Also, this fixes the smart tests by generating an index for all packages
at the time of the test, rather than using the one provided by the
rootfs process.

Original credit for the enhancement should go to Steven Walter
stevenrwalter@gmail.com.

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_rpm.bbclass
meta/lib/oe/package_manager.py
meta/lib/oeqa/runtime/smart.py