mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user