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 | |
parent | c090d986372eed5b3bd494e4c73b7f2b41e7c8df (diff) | |
download | poky-fd46f224ad867757a8b191424cc7b66b89d55857.tar.gz |
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')
-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): | |||
49 | print "Foo %s" % minversion | 49 | print "Foo %s" % minversion |
50 | return | 50 | return |
51 | 51 | ||
52 | if 0 == os.getuid(): | ||
53 | raise_sanity_error("Do not use Bitbake as root.") | ||
54 | |||
52 | messages = "" | 55 | messages = "" |
53 | 56 | ||
54 | if (LooseVersion(__version__) < LooseVersion(minversion)): | 57 | if (LooseVersion(__version__) < LooseVersion(minversion)): |