summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/autoremove.py2
-rw-r--r--src/backend/branchsetup.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/autoremove.py b/src/backend/autoremove.py
index b5b732f..497d8e5 100644
--- a/src/backend/autoremove.py
+++ b/src/backend/autoremove.py
@@ -6,7 +6,7 @@ import sisyphus.database
import sys
def start():
- if sisyphus.check.root() == 0:
+ if sisyphus.check.root():
portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'])
portageExec.wait()
sisyphus.database.syncLocal()
diff --git a/src/backend/branchsetup.py b/src/backend/branchsetup.py
index e0d27a6..0a54dd8 100644
--- a/src/backend/branchsetup.py
+++ b/src/backend/branchsetup.py
@@ -82,7 +82,7 @@ def warnAboutBinaryRepository(branch,remote):
def start(branch,remote):
- if sisyphus.check.root() == 0:
+ if sisyphus.check.root():
sisyphus.branchreset.start()
injectGentooPortageTree(branch,remote)
injectRedcoreEbuildOverlay(branch,remote)