summaryrefslogtreecommitdiff
path: root/meta/classes/buildstats.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-05-06 17:19:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-07 13:14:38 +0100
commit76daab82185851608e5e225487e411504ecb6569 (patch)
tree034bd9bc355fed2121fc33793184b0e62c7653e8 /meta/classes/buildstats.bbclass
parente6d2b407979869219da1f15ed4b5c1c804548fce (diff)
downloadopenembedded-core-76daab82185851608e5e225487e411504ecb6569.tar.gz
openembedded-core-76daab82185851608e5e225487e411504ecb6569.tar.bz2
openembedded-core-76daab82185851608e5e225487e411504ecb6569.zip
classes/buildstats: don't catch all errors from mkdirhier
mkdirhier() doesn't raise an exception if the directory exists, so if it does raise one we should just be failing, otherwise we're just going to hit errors later anyway. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r--meta/classes/buildstats.bbclass15
1 files changed, 3 insertions, 12 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index f15c45dbc7..54d9f72b1d 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -181,20 +181,14 @@ python run_buildstats () {
# at first pass make the buildstats heriarchy and then
# set the buildname
########################################################################
- try:
- bb.utils.mkdirhier(e.data.getVar('BUILDSTATS_BASE', True))
- except:
- pass
+ bb.utils.mkdirhier(e.data.getVar('BUILDSTATS_BASE', True))
set_bn(e)
bn = get_bn(e)
set_device(e)
device = get_device(e)
bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
- try:
- bb.utils.mkdirhier(bsdir)
- except:
- pass
+ bb.utils.mkdirhier(bsdir)
if device != "NoLogicalDevice":
set_diskdata("__diskdata_build", device, e.data)
set_timedata("__timedata_build", e.data)
@@ -242,10 +236,7 @@ python run_buildstats () {
if device != "NoLogicalDevice":
set_diskdata("__diskdata_task", device, e.data)
set_timedata("__timedata_task", e.data, e.time)
- try:
- bb.utils.mkdirhier(taskdir)
- except:
- pass
+ bb.utils.mkdirhier(taskdir)
# write into the task event file the name and start time
file = open(os.path.join(taskdir, e.task), "a")
file.write("Event: %s \n" % bb.event.getName(e))