summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-08 00:15:56 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-08 00:15:56 +0100
commitaab2a6ca78f41a41673d03d22da2c562ee90901b (patch)
treec9f365d740815df15ba0d9f52bf1ba5ef2d29036 /src/backend
parentad3f757e2e3a7e0ed041d3d8df51d3e165e44e47 (diff)
make uninstall function parameters more descriptive
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/uninstall.py8
1 files changed, 4 insertions, 4 deletions
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()