summaryrefslogtreecommitdiff
path: root/src/backend/removeorphans.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/removeorphans.py')
-rw-r--r--src/backend/removeorphans.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/removeorphans.py b/src/backend/removeorphans.py
new file mode 100644
index 0000000..a0b4f30
--- /dev/null
+++ b/src/backend/removeorphans.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()