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/frontend/cli/sisyphus-cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/cli/sisyphus-cli.py') diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 61a5d82..8937c93 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -177,7 +177,7 @@ def autoremove(): @app.command("update") def update(): """Update the Portage tree, the Redcore Overlay(s), Portage configs and Sisyphus's package database.""" - if sisyphus.check.root() == 0: + if sisyphus.check.root(): sisyphus.update.start() else: sys.exit("\nYou need root permissions to do this, exiting!\n") -- cgit v1.2.3