summaryrefslogtreecommitdiff
path: root/src/backend/check.py
diff options
context:
space:
mode:
authorbionel <ionel.busuioc@gmail.com>2020-08-18 16:32:47 +0300
committerbionel <ionel.busuioc@gmail.com>2020-08-18 16:32:47 +0300
commit61bae3efdc42fc1d748e4d60d24ff45e885ea212 (patch)
tree01e002aa888ca2f179365672690d565cd56406fa /src/backend/check.py
parent9ea619cd8cf630016ac2e38988bf7e5a86e06559 (diff)
pythonize check.root :P
Diffstat (limited to 'src/backend/check.py')
-rw-r--r--src/backend/check.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/check.py b/src/backend/check.py
index fb760cc..b2d8206 100644
--- a/src/backend/check.py
+++ b/src/backend/check.py
@@ -5,8 +5,7 @@ import subprocess
import sisyphus.filesystem
def root():
- if os.getuid() == 0:
- return 0
+ return True if os.getuid() == 0 else False
def portage():
if os.path.isdir(os.path.join(sisyphus.filesystem.portageRepoDir, '.git')):