From a23accad55705278cb19592c4af785dd182f36b7 Mon Sep 17 00:00:00 2001 From: bionel Date: Sun, 20 Sep 2020 12:52:11 +0300 Subject: fix check.root --- src/backend/autoremove.py | 2 +- src/backend/branchsetup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3