summaryrefslogtreecommitdiff
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-10-16 17:51:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-21 22:51:29 +0100
commitf6609aca5c533325411567a79130114654c50f3b (patch)
tree6e212c32c92c144ff6498033118438bbb341b13e /meta/classes/sanity.bbclass
parent2e81dbdce6f92908c4d4c980af032516581178de (diff)
downloadopenembedded-core-f6609aca5c533325411567a79130114654c50f3b.tar.gz
openembedded-core-f6609aca5c533325411567a79130114654c50f3b.tar.bz2
openembedded-core-f6609aca5c533325411567a79130114654c50f3b.zip
sanity.bbclass: expand warning when chmod fails
As suggested, add exception message to warning in sanity.bbclass when chmod fails on TMPDIR. [YOCTO #7669] Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 34f86180df..d0b5cd056c 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -843,8 +843,8 @@ def check_sanity_everybuild(status, d):
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID)
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID)
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX)
- except OSError:
- bb.warn("Unable to chmod TMPDIR: %s" % tmpdir)
+ except OSError as exc:
+ bb.warn("Unable to chmod TMPDIR: %s" % exc)
with open(checkfile, "w") as f:
f.write(tmpdir)