summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/__init__.py2
-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)