]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: Remove possibility of file corruption and make package writing atomic
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Mar 2012 22:47:24 +0000 (22:47 +0000)
committerJoshua Lock <josh@linux.intel.com>
Tue, 22 May 2012 05:14:24 +0000 (22:14 -0700)
commitd527f68bdf167b4a3dcc035968da59677abb70bb
treeb53f506bbd99840ae03d8452b9c1867975989946
parent8ca7387ff2dd788221a16021ec98b4aee946a187
sstate.bbclass: Remove possibility of file corruption and make package writing atomic

There is currently a race window when creating sstate packages since we don't
atomically write the files to SSTATE_DIR. This change ensures we do so by writing
to a temporary file and then doing an atomic move.

(From OE-Core rev: 52bf113e786a57123a9da98f64442afbc2f1471e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/sstate.bbclass