From 6f93111dc360ddf9dcb2b10fd8e010f0fcb4338b Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 4 Jul 2007 08:11:45 +0000 Subject: sanity: if OE is used by root user (userid 0) then raise error (from Poky) --- classes/sanity.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes/sanity.bbclass') 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)): -- cgit v1.2.3