]> code.ossystems Code Review - openembedded-core.git/commit
package: Fix PACKAGELOCK handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Apr 2018 07:25:32 +0000 (08:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Apr 2018 10:12:03 +0000 (11:12 +0100)
commitd46cadbbb42aa71f9436d640891d6ccc8f8e3618
tree571fbb731c1b5095c24b3bc25ca519462e1416b6
parent593ffffc3baf064b982891d61dacebd08aed3e96
package: Fix PACKAGELOCK handling

PACKAGELOCK is there to protect readers of PKGDATA_DIR from writes and files
changing whilst they're being read. With various changes to the codebase,
the lock code has become confused as the files are now written by the sstate
code in do_packagedata, not in do_package directly any longer.

This change cleans up the code so read sites take the shared lock (anything in
do_package), write sites take the full lock (do_packagedata sstate).

The lock from do_package sstate is no longer needed since it doesn't write
outside WORKDIR.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass