From: Alex Franco Date: Fri, 16 Oct 2015 22:51:12 +0000 (-0500) Subject: sanity.bbclass: expand warning when chmod fails X-Git-Tag: 2015-10~94 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f6609aca5c533325411567a79130114654c50f3b;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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)