From a158388a51147320bd599299081f1ecfe1152a6a Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 20 Jun 2016 14:00:50 +0300 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 2de6b3e0dd..ca53ff4eaa 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/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 v1.2.3-54-g00ecf