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:
Ed Bartosh 2016-06-20 14:00:50 +03:00 committed by Richard Purdie
parent e28b36e1e8
commit a158388a51
1 changed files with 0 additions and 6 deletions

View File

@ -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"])}))