summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 14:19:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 14:19:00 +0000
commit712f936222be4c06ca00ef922a98cd94db71af11 (patch)
tree92fed5c9e68559928bdd3123a5fba7338080c31a
parent4b1f4edf874da9620d2960c7b1a5c36da330ec7a (diff)
move autoRemoveAll -> autoremove
-rw-r--r--src/backend/__init__.py2
-rw-r--r--src/backend/autoremove.py (renamed from src/backend/autoRemoveAll.py)4
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py2
-rw-r--r--src/frontend/gui/sisyphus-gui.py2
4 files changed, 5 insertions, 5 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)
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index df0a125..b1b2e3f 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -172,7 +172,7 @@ def autoremove():
In addition, a package may no longer depend on another one, so that other package becomes orphan as well if nothing else requires it.
Use this option to check the whole dependency chain for such packages, and uninstall them.
"""
- sisyphus.autoRemoveAll.cliExec()
+ sisyphus.autoremove.start()
@app.command("update")
def update():
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index c3d5ea5..fe3803e 100644
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -417,7 +417,7 @@ class MainWorker(QtCore.QObject):
@QtCore.pyqtSlot()
def startAutoremove(self):
self.started.emit()
- sisyphus.autoRemoveAll.guiExec()
+ sisyphus.autoremove.startx()
self.finished.emit()