summaryrefslogtreecommitdiff
path: root/src/backend/autoRemoveAll.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-26 13:27:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-26 13:27:42 +0100
commitf2b26188fd4debefb9a93932a919d39bf80be10a (patch)
tree3b54df26b65c718af9a8f0ef82ee5c3fcf9484e4 /src/backend/autoRemoveAll.py
parentb51a4c690ccf0353e87211ea4864d49b1c3d5c70 (diff)
rename start && startqt -> cliExec && guiExec
Diffstat (limited to 'src/backend/autoRemoveAll.py')
-rw-r--r--src/backend/autoRemoveAll.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/autoRemoveAll.py b/src/backend/autoRemoveAll.py
index 982c7b3..85a7b7f 100644
--- a/src/backend/autoRemoveAll.py
+++ b/src/backend/autoRemoveAll.py
@@ -8,7 +8,7 @@ import sisyphus.checkEnvironment
import sisyphus.killPortage
import sisyphus.syncDatabase
-def start():
+def cliExec():
if sisyphus.checkEnvironment.root():
portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'])
portageExec.wait()
@@ -16,10 +16,10 @@ def start():
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
-def startqt():
+def guiExec():
portageExec = subprocess.Popen(['emerge', '--depclean'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# kill portage if the program dies or it's terminated by the user
- atexit.register(sisyphus.killPortage.start, portageExec)
+ atexit.register(sisyphus.killPortage.cliExec, portageExec)
for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"):
print(portageOutput.rstrip())