[bitbake-devel] [PATCH 3/5] cooker: don't remove event file
Ed Bartosh
ed.bartosh at linux.intel.com
Mon Jun 20 11:00:50 UTC 2016
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 at linux.intel.com>
---
bitbake/lib/bb/cooker.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 2de6b3e..ca53ff4 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"])}))
--
2.1.4
More information about the bitbake-devel
mailing list