From 1fc9957837b7038dfb983217a3fcd880f143e3a4 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 20 Jun 2016 14:00:50 +0300 Subject: cooker: don't remove event file There is no need to remove output file as it gets rewritten by open(self.eventfile, 'w') anyway. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/bb/cooker.py') diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 2de6b3e0d..ca53ff4ea 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -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"])})) -- cgit 1.2.3-korg