add root checking

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@350 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2007-07-31 11:02:22 +00:00
parent 779061671d
commit 8cebae3ebb

View File

@@ -1138,7 +1138,7 @@ def installPackages(packages, autoDrive = False):
# check if I am root
if (not checkRoot()):
print_error(red("\t You must run this function as root."))
return 1
return 1,-1
foundAtoms = []
for package in packages: