]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildstats: Drop spurious open() call
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2013 16:33:50 +0000 (17:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2013 21:25:19 +0000 (22:25 +0100)
This file is already opened a few lines previously, so drop the duplicated
call.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildstats.bbclass

index 453c50b968b21509736ec99f68a98a110a8041e6..e12e14fcd6d0823fef66f58876550999768cba82 100644 (file)
@@ -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)