From aab2a6ca78f41a41673d03d22da2c562ee90901b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Apr 2023 00:15:56 +0100 Subject: make uninstall function parameters more descriptive --- src/backend/uninstall.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/uninstall.py') diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py index c2e777b..3c5a280 100644 --- a/src/backend/uninstall.py +++ b/src/backend/uninstall.py @@ -18,15 +18,15 @@ def sigint_handler(signal, frame): signal.signal(signal.SIGINT, sigint_handler) -def start(pkgname, force=False, gfx_ui=False, normal=False): +def start(pkgname, depclean=False, gfx_ui=False, unmerge=False): args = ['--quiet', '--depclean'] - if not sisyphus.checkenv.root() and (force or normal): + if not sisyphus.checkenv.root() and (unmerge or depclean): print(sisyphus.getcolor.bright_red + "\nYou need root permissions to do this!\n" + sisyphus.getcolor.reset) sys.exit() - if force: + if unmerge: p_exe = subprocess.Popen( ['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname)) try: @@ -50,7 +50,7 @@ def start(pkgname, force=False, gfx_ui=False, normal=False): p_exe.wait() sisyphus.syncdb.lcl_tbl() - elif normal: + elif depclean: p_exe = subprocess.Popen(['emerge'] + args + ['--ask'] + list(pkgname)) try: p_exe.wait() -- cgit v1.2.3