[oe-commits] [bitbake] 04/06: cooker: don't remove event file
git at git.openembedded.org
git at git.openembedded.org
Mon Jun 20 16:25:00 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
commit 1fc9957837b7038dfb983217a3fcd880f143e3a4
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Jun 20 14:00:50 2016 +0300
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2de6b3e..ca53ff4 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"])}))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list