diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-07-04 07:53:48 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-07-04 07:53:48 +0000 |
commit | fd46f224ad867757a8b191424cc7b66b89d55857 (patch) | |
tree | 54a03186623c372701862b65471693603102bfaf /meta/classes/sanity.bbclass | |
parent | c090d986372eed5b3bd494e4c73b7f2b41e7c8df (diff) | |
download | openembedded-core-fd46f224ad867757a8b191424cc7b66b89d55857.tar.gz openembedded-core-fd46f224ad867757a8b191424cc7b66b89d55857.tar.bz2 openembedded-core-fd46f224ad867757a8b191424cc7b66b89d55857.zip |
sanity: if Poky is used by root user (userid 0) then raise error
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2093 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 20e4bda7a9..5fbf075db9 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -49,6 +49,9 @@ def check_sanity(e): print "Foo %s" % minversion return + if 0 == os.getuid(): + raise_sanity_error("Do not use Bitbake as root.") + messages = "" if (LooseVersion(__version__) < LooseVersion(minversion)): |