summaryrefslogtreecommitdiffstats
path: root/meta
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:56:03 +0100
commit96a5cfd65691dd05de10e784e9f372eb5abce34c (patch)
tree7ecaf69d291ecf1582eaa81dfa58b2c9e27b5991 /meta
parent409e6e02ff887bc9060a44f5e1e4eff61488654c (diff)
downloadpoky-96a5cfd65691dd05de10e784e9f372eb5abce34c.tar.gz
sanity.bbclass: expand warning when chmod fails
As suggested, add exception message to warning in sanity.bbclass when chmod fails on TMPDIR. [YOCTO #7669] (From OE-Core rev: f6609aca5c533325411567a79130114654c50f3b) Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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):
843 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID) 843 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID)
844 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID) 844 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID)
845 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX) 845 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX)
846 except OSError: 846 except OSError as exc:
847 bb.warn("Unable to chmod TMPDIR: %s" % tmpdir) 847 bb.warn("Unable to chmod TMPDIR: %s" % exc)
848 with open(checkfile, "w") as f: 848 with open(checkfile, "w") as f:
849 f.write(tmpdir) 849 f.write(tmpdir)
850 850