Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] sanity.bbclass: expand warning when chmod fails
@ 2015-10-16 22:51 Alex Franco
  0 siblings, 0 replies; only message in thread
From: Alex Franco @ 2015-10-16 22:51 UTC (permalink / raw)
  To: openembedded-core; +Cc: clarson

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>
---
 meta/classes/sanity.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 34f8618..d0b5cd0 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)
 
-- 
2.5.3



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-16 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-16 22:51 [PATCH 1/1] sanity.bbclass: expand warning when chmod fails Alex Franco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox