bitbake: cooker: don't remove event file
There is no need to remove output file as it gets rewritten by open(self.eventfile, 'w') anyway. (Bitbake rev: 1fc9957837b7038dfb983217a3fcd880f143e3a4) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e28b36e1e8
commit
a158388a51
|
@ -131,12 +131,6 @@ class EventLogWriteHandler:
|
|||
self.event_queue = []
|
||||
|
||||
def init_file(self):
|
||||
try:
|
||||
# delete the old log
|
||||
os.remove(self.eventfile)
|
||||
except:
|
||||
pass
|
||||
|
||||
# write current configuration data
|
||||
with open(eventfile, "w") as f:
|
||||
f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])}))
|
||||
|
|
Loading…
Reference in New Issue