summaryrefslogtreecommitdiff
path: root/src/backend/autoremove.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-09 20:45:02 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-09 20:45:02 +0100
commitc76a29a71d16e9ed512a22945d6e6b77b0d21fb6 (patch)
treec169e25c9d0fb66f4b6d7aa2c9d1d5950fc49f6c /src/backend/autoremove.py
parentbab41785dd6af2ecc88078dd22550b483e7fc776 (diff)
sisyphus-cli : plug more functions : install, uninstall, forceuninstall, update, upgrade, rescue, spmsync, autoremove - all work
Diffstat (limited to 'src/backend/autoremove.py')
-rw-r--r--src/backend/autoremove.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/autoremove.py b/src/backend/autoremove.py
new file mode 100644
index 0000000..a0b4f30
--- /dev/null
+++ b/src/backend/autoremove.py
@@ -0,0 +1,11 @@
+#!/usr/bin/python3
+
+import subprocess
+import sisyphus.check
+import sisyphus.sync
+
+def start():
+ sisyphus.check.root()
+ portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'])
+ portageExec.wait()
+ sisyphus.database.syncLocal()