diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-20 14:00:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-20 17:23:57 +0100 |
commit | a158388a51147320bd599299081f1ecfe1152a6a (patch) | |
tree | 4e73bfaadf11ef13d104329bdbf2d7d592bbbd23 | |
parent | e28b36e1e8b2d6b1531698d6d50658e3fc73adc0 (diff) | |
download | poky-a158388a51147320bd599299081f1ecfe1152a6a.tar.gz |
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 <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 0 insertions, 6 deletions
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: | |||
131 | self.event_queue = [] | 131 | self.event_queue = [] |
132 | 132 | ||
133 | def init_file(self): | 133 | def init_file(self): |
134 | try: | ||
135 | # delete the old log | ||
136 | os.remove(self.eventfile) | ||
137 | except: | ||
138 | pass | ||
139 | |||
140 | # write current configuration data | 134 | # write current configuration data |
141 | with open(eventfile, "w") as f: | 135 | with open(eventfile, "w") as f: |
142 | f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])})) | 136 | f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])})) |