]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc: avoid race in temporary git index file
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 5 Apr 2016 13:21:49 +0000 (16:21 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Apr 2016 13:37:43 +0000 (14:37 +0100)
commitf81c641022c26a9b89fac769e0f2889eaec5d32f
tree815bc8fb459f8451b36deda14ee2f3e27346455d
parentb2dc5a68e74dafedf7960ef77ad3d73912ed7960
externalsrc: avoid race in temporary git index file

Use a unique tempfile as the temporary git index file when determining
the git hash of the source tree. A fixed filename was obviously causing
races (with the git index.lock file) under oe-selftest where multiple
bitbake instances were run against the same source tree at the same
time.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass