[OE-core] [PATCH] buildstats: Drop spurious open() call
Richard Purdie
richard.purdie at linuxfoundation.org
Thu May 9 16:33:50 UTC 2013
This file is already opened a few lines previously, so drop the duplicated
call.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 453c50b..e12e14f 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -217,7 +217,6 @@ python run_buildstats () {
if timedata:
time, cpu = timedata
# write end of build and cpu used into build_time
- file = open(build_time, "a")
file.write("Elapsed time: %0.2f seconds \n" % (time))
if cpu:
file.write("CPU usage: %0.1f%% \n" % cpu)
More information about the Openembedded-core
mailing list