bitbake: siggen.py: Insure .siginfo files writes into shared sstate cache are atomic
authorJeffrey C Honig <jeffrey.honig@windriver.com>
Tue, 17 Jul 2012 00:48:57 +0000 (20:48 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jul 2012 09:54:07 +0000 (10:54 +0100)
commit179c6af314116f0e4192a135d22e14ae2e086f5e
tree93cdbb9aa11fc9b6cbcda2d98a6ec1b0c1b75b51
parentb405e48a8482739e23aafb441df8612e5c505c5c
bitbake: siggen.py: Insure .siginfo files writes into shared sstate cache are atomic

   Use tempfile.mkstemp to create a temporary file in the sstate dir and move it
   into place after closing.  The previous code would fail in the chmod() if two
   users were running jobs that touched the same signature file.

(Bitbake rev: ff11e9ac5eba2d957917664a7b91b1277d8ad548)

Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/siggen.py