[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1003/8267] bitbake: cooker: don't remove event file



commit a158388a51147320bd599299081f1ecfe1152a6a
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   Mon Jun 20 14:00:50 2016 +0300

    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>

 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 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"])}))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]