diff options
author | bionel <bionel@lenovo.b5030> | 2020-09-20 12:52:11 +0300 |
---|---|---|
committer | bionel <bionel@lenovo.b5030> | 2020-09-20 12:52:11 +0300 |
commit | a23accad55705278cb19592c4af785dd182f36b7 (patch) | |
tree | 61b9fe56d7fdb9de868d20df3f3e3714a7e93e7e | |
parent | 02a67877e808bf2f3cf637bcc5694907ae6c2f00 (diff) |
fix check.root
-rw-r--r-- | src/backend/autoremove.py | 2 | ||||
-rw-r--r-- | src/backend/branchsetup.py | 2 |
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) |