summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-29 16:55:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-29 16:55:31 +0000
commitadabf6c0931af1282a7c75321cd8b050e8d05c95 (patch)
treed5f831a753474845f99fb250ab66a20b08e9ca3b /meta/classes/sanity.bbclass
parent2dc275c3ca35283300a1b73dbc5fbafa62d9db68 (diff)
downloadpoky-adabf6c0931af1282a7c75321cd8b050e8d05c95.tar.gz
sanity.bbclass: Add umask check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@986 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 019edd963e..e8cff1d348 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -103,6 +103,11 @@ def check_sanity(e):
103 missing = missing.rstrip(',') 103 missing = missing.rstrip(',')
104 messages = messages + "Please install following missing utilities: %s\n" % missing 104 messages = messages + "Please install following missing utilities: %s\n" % missing
105 105
106 omask = os.umask(022)
107 if omask & 0755:
108 messages = messages + "Please use a umask which allows a+rx and u+rwx\n"
109 os.umask(omask)
110
106 if messages != "": 111 if messages != "":
107 raise_sanity_error(messages) 112 raise_sanity_error(messages)
108 113