aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-06-20 14:00:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-20 17:23:40 +0100
commit1fc9957837b7038dfb983217a3fcd880f143e3a4 (patch)
tree0076398a26dd155f311160283b05524c4ed4a346
parentf18055237e6084f90f6221442e3ba021dcc59c50 (diff)
downloadbitbake-1fc9957837b7038dfb983217a3fcd880f143e3a4.tar.gz
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py6
1 files changed, 0 insertions, 6 deletions
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"])}))