diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 14:19:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 14:19:00 +0000 |
commit | 712f936222be4c06ca00ef922a98cd94db71af11 (patch) | |
tree | 92fed5c9e68559928bdd3123a5fba7338080c31a /src/backend | |
parent | 4b1f4edf874da9620d2960c7b1a5c36da330ec7a (diff) |
move autoRemoveAll -> autoremove
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/__init__.py | 2 | ||||
-rw-r--r-- | src/backend/autoremove.py (renamed from src/backend/autoRemoveAll.py) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/__init__.py b/src/backend/__init__.py index ecbde21..f0728d3 100644 --- a/src/backend/__init__.py +++ b/src/backend/__init__.py @@ -1,4 +1,4 @@ -from .autoRemoveAll import * +from .autoremove import * from .checkEnvironment import * from .getEnvironment import * from .getFilesystem import * diff --git a/src/backend/autoRemoveAll.py b/src/backend/autoremove.py index 85a7b7f..9b993ef 100644 --- a/src/backend/autoRemoveAll.py +++ b/src/backend/autoremove.py @@ -8,7 +8,7 @@ import sisyphus.checkEnvironment import sisyphus.killPortage import sisyphus.syncDatabase -def cliExec(): +def start(): if sisyphus.checkEnvironment.root(): portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask']) portageExec.wait() @@ -16,7 +16,7 @@ def cliExec(): else: sys.exit("\nYou need root permissions to do this, exiting!\n") -def guiExec(): +def startx(): 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.cliExec, portageExec) |