yocto-bsp: have replace_file() close file before copying
authorTom Zanussi <tom.zanussi@linux.intel.com>
Fri, 29 Mar 2013 21:48:50 +0000 (16:48 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Apr 2013 21:54:29 +0000 (22:54 +0100)
commit393e608234f0d9ab5a6e26f361edf1d506f45df1
treec78df19d59cd5d28fc4e322a4a2a934e66cf5f91
parent279ac471264d673c465862cdd9e26965b7f69c9b
yocto-bsp: have replace_file() close file before copying

replace_file needs to make sure the file it's replacing is closed
before replacing it, otherwise unexpected results may ensue.

Fixes [YOCTO #4145].

(From meta-yocto rev: 1339dbb690d51456b4474356992e430638469e47)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/bsp/engine.py