]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cooker: don't remove event file
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 20 Jun 2016 11:00:50 +0000 (14:00 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Jun 2016 16:23:40 +0000 (17:23 +0100)
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>
lib/bb/cooker.py

index 2de6b3e0dd5435b2d46f81ccfe915487ba36e784..ca53ff4eaab1b89e2b2b98707535ae5414628aa2 100644 (file)
@@ -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"])}))