check if user is already root, if so, run spritz directly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1219 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-16 00:38:28 +00:00
parent 4116c5760a
commit 8e85661e6d
+4 -1
View File
@@ -34,5 +34,8 @@ def setup_env():
setup_env()
rc = os.system(su_cmd)
if os.getuid() == 0:
rc = os.system(spritz_path)
else:
rc = os.system(su_cmd)
sys.exit(rc)