udev-cache: Update cache tarball atomically
authorRichard Tollerton <rich.tollerton@ni.com>
Fri, 22 Aug 2014 21:30:47 +0000 (16:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:58 +0000 (23:01 +0100)
commitf106e14f83f255a252732a729dfb352ed3f02a32
tree795aae7fad2731e2bf5dc4c6129104368d41600f
parentb32353be1d659985795fb8b74b445dbaf9b0d0f1
udev-cache: Update cache tarball atomically

Overwriting the tarball in-place could cause a partial write, if the
system stops at an inopportune time. This is mitigated by first writing
to a temporary file, then moving that file on top of the final location.

(From OE-Core rev: 5dbf43fe32a1cf259f9379a7d2c008260eabf3ac)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev/udev-cache