diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-07-04 08:11:45 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-07-04 08:11:45 +0000 |
commit | 6f93111dc360ddf9dcb2b10fd8e010f0fcb4338b (patch) | |
tree | c7ad66f791fa1d97f8bd9402759dc8d3832c988d | |
parent | 3acbf74f8f8890f4af9d875d052e45036f546613 (diff) |
sanity: if OE is used by root user (userid 0) then raise error (from Poky)
-rw-r--r-- | classes/sanity.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index b84efb0848..d2fd4b0b04 100644 --- a/classes/sanity.bbclass +++ b/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)): |