]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_rpm.bbclass: Add the necessary solvedb lock
authorMark Hatle <mark.hatle@windriver.com>
Mon, 28 Feb 2011 19:40:37 +0000 (13:40 -0600)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 1 Mar 2011 11:46:49 +0000 (11:46 +0000)
[BUG #776]

When using the RPM solve databases, we have to lock our operations
to avoid removing it while it's in use.

The same lock is shared by the rootfs_rpm.bbclass

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/populate_sdk_rpm.bbclass

index 0afe042fd665a6214c07eb4b03c5eb5bc6a983dc..da308c12cd67d6a7f0e9d0c741742cc545a805e9 100644 (file)
@@ -5,6 +5,7 @@ rpmlibdir = "/var/lib/rpm"
 RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'"
 RPM="rpm ${RPMOPTS}"
 
+do_populate_sdk[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock"
 
 populate_sdk_post_rpm () {