From 61bae3efdc42fc1d748e4d60d24ff45e885ea212 Mon Sep 17 00:00:00 2001 From: bionel Date: Tue, 18 Aug 2020 16:32:47 +0300 Subject: pythonize check.root :P --- src/backend/uninstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/uninstall.py') diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py index 2537b74..8da7e79 100644 --- a/src/backend/uninstall.py +++ b/src/backend/uninstall.py @@ -6,7 +6,7 @@ import sisyphus.database import sys def start(pkgname): - if sisyphus.check.root() == 0: + if sisyphus.check.root(): portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'] + list(pkgname)) portageExec.wait() sisyphus.database.syncLocal() -- cgit v1.2.3